/*
Theme Name: RingItUp Modern
Theme URI: https://ringitup.net
Description: A modern, dark-themed WordPress theme for RingItUp payment solutions.
Author: RingItUp
Author URI: https://ringitup.net
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ringitup-modern
*/

/* ─── CSS RESET & VARIABLES ─── */
:root {
  --bg: #0a0a0c;
  --bg2: #111114;
  --bg3: #1a1a1f;
  --surface: #222228;
  --border: #2a2a32;
  --text: #f0efe9;
  --text2: #9b9aa0;
  --accent: #4ade80;
  --accent2: #22c55e;
  --accent-glow: rgba(74, 222, 128, 0.12);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.accent-text {
  color: var(--accent);
  font-style: italic;
}

.section-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ─── NAVIGATION ─── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  background: rgba(10, 10, 12, 0.85);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.site-nav.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.nav-logo-text span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--accent);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

.mobile-menu {
  display: none;
  padding: 12px 24px 24px;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--border);
}

.mobile-menu.active {
  display: flex;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-family: var(--sans);
  transition: all 0.3s cubic-bezier(.16, 1, .3, 1);
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent2);
  box-shadow: 0 0 30px rgba(74, 222, 128, 0.3);
  transform: translateY(-1px);
}

.btn-primary-sm {
  padding: 10px 24px;
  font-size: 14px;
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text);
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 50px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 15px;
  font-family: var(--sans);
  transition: all 0.3s cubic-bezier(.16, 1, .3, 1);
  text-decoration: none;
  text-align: center;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ─── LAYOUT HELPERS ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 24px;
}

.section-dark {
  background: var(--bg2);
}

.text-center {
  text-align: center;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(74, 222, 128, 0.08), transparent),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(74, 222, 128, 0.04), transparent);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--text2);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulse-glow 2s infinite;
}

.hero h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text2);
  max-width: 460px;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual img {
  max-width: 480px;
  width: 100%;
  animation: float 5s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  inset: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.08), transparent 70%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 40px; }
}

/* ─── STATS ─── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 0;
}

.stat-number {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
}

.stat-label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text2);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 36px; }
}

/* ─── PRODUCT CARDS ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg2);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(.16, 1, .3, 1), box-shadow 0.4s cubic-bezier(.16, 1, .3, 1), border-color 0.4s;
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(74, 222, 128, 0.15);
  border-color: rgba(74, 222, 128, 0.25);
}

.product-card-image {
  background: linear-gradient(135deg, var(--bg3), var(--surface));
  padding: 36px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.product-card-image img {
  max-height: 200px;
  max-width: 100%;
  object-fit: contain;
}

.product-card-body {
  padding: 24px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body h3 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-card-body p {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 50px;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ─── SOLUTIONS ─── */
.solutions-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.solution-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 14px;
  color: var(--text2);
  transition: all 0.3s;
  cursor: default;
}

.solution-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ─── FEATURES ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 36px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg2);
  transition: border-color 0.3s;
}

.feature-card:hover {
  border-color: rgba(74, 222, 128, 0.25);
}

.feature-card-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ─── CONTACT FORM ─── */
.contact-form-wrapper {
  background: var(--bg);
  border-radius: 24px;
  padding: 40px 36px;
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group:last-of-type {
  margin-bottom: 24px;
}

input, select, textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

select {
  cursor: pointer;
  appearance: none;
}

.contact-info {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  font-size: 14px;
  color: var(--text2);
}

/* ─── PRODUCT PAGE ─── */
.product-hero {
  padding: 80px 0 100px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(74, 222, 128, 0.08), transparent),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(74, 222, 128, 0.04), transparent);
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.back-link {
  color: var(--text2);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 40px;
  transition: color 0.3s;
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent);
}

.product-img-wrapper {
  background: linear-gradient(135deg, var(--bg3), var(--surface));
  border-radius: 24px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--border);
}

.product-img-wrapper::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), transparent 50%, rgba(74, 222, 128, 0.08));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
}

.product-img-wrapper img {
  width: 100%;
  border-radius: 12px;
  max-height: 420px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .product-hero-grid { grid-template-columns: 1fr; }
}

/* ─── FOOTER ─── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 24px 40px;
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-heading {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text2);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.footer-links a {
  color: var(--text2);
  font-size: 14px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}

.glow-line {
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  height: 1px;
  width: 100%;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text2);
}

.footer-social {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-social a {
  color: var(--text2);
  font-size: 13px;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── ANIMATIONS ─── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(.16, 1, .3, 1), transform 0.7s cubic-bezier(.16, 1, .3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-d1 { transition-delay: 0.1s; }
.fade-in-d2 { transition-delay: 0.2s; }
.fade-in-d3 { transition-delay: 0.3s; }
