/* ============================================
   FlowGlue — Global Styles
   Dream Hives Pvt Ltd
   ============================================ */

/* Font loaded via <link> in each HTML file — NOT @import here */

/* ---- CSS Variables ---- */
:root {
  --bg:         #080c18;
  --surface:    #0c1022;
  --surface2:   #101628;
  --border:     rgba(0, 188, 212, 0.18);
  --border-dim: rgba(255,255,255,0.06);
  --cyan:       #00bcd4;
  --cyan-glow:  #00e5ff;
  --white:      #f0f6ff;
  --text-sec:   #7e95b5;
  --success:    #10b981;
  --warning:    #f59e0b;
  --error:      #ef4444;
  --dead:       #4b5563;
  --razorpay:   #528FF0;
  --cashfree:   #1A73E8;
  --shopify:    #96BF48;
  --shiprocket: #F26522;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-glow); }

/* ---- Grain texture ---- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 1;
}

/* ---- Navigation ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 6%;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 12, 24, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dim);
  transition: box-shadow 0.3s;
}

.nav-logo img {
  height: 34px;
  width: auto;
}

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

.nav-links a {
  color: var(--text-sec);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--cyan) !important;
  color: #080c18 !important;
  padding: 0.5rem 1.3rem !important;
  border-radius: 6px !important;
  font-weight: 800 !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.01em !important;
  transition: all 0.2s !important;
  box-shadow: 0 0 0 0 rgba(0,188,212,0) !important;
}

.nav-cta:hover {
  background: var(--cyan-glow) !important;
  color: #080c18 !important;
  box-shadow: 0 0 20px rgba(0,229,255,0.35) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

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

.mobile-menu a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
}

.mobile-menu a:hover { color: var(--cyan); }

.mobile-menu .mob-cta {
  background: var(--cyan);
  color: var(--bg) !important;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-size: 1.2rem !important;
  font-weight: 800 !important;
}

.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 6%;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ---- Page wrapper ---- */
.page { padding-top: 68px; position: relative; z-index: 1; }

/* ---- Section base ---- */
section { padding: 7rem 6%; }

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

/* ---- Typography ---- */
.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.3;
}

.gradient-text {
  background: linear-gradient(120deg, var(--cyan) 0%, var(--cyan-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cyan);
  color: #080c18;
  font-family: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--cyan-glow);
  color: #080c18;
  box-shadow: 0 0 32px rgba(0,229,255,0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  font-family: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: 14px;
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(0,188,212,0.3);
  box-shadow: 0 0 40px rgba(0,188,212,0.06);
}

/* ---- Status badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 20px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  letter-spacing: 0.01em;
}

.badge-success { background: rgba(16,185,129,0.12); color: #34d399; }
.badge-warning { background: rgba(245,158,11,0.12); color: #fbbf24; }
.badge-error   { background: rgba(239,68,68,0.12);  color: var(--error); }
.badge-dead    { background: rgba(107,114,128,0.12); color: var(--dead); }

.badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.badge-success::before { animation: pulse-green 2s infinite; }
.badge-warning::before { animation: pulse-amber 2s infinite; }

@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes pulse-amber {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ---- Footer ---- */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border-dim);
  padding: 5rem 6% 2.5rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

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

.footer-brand p {
  color: var(--text-sec);
  font-size: 0.92rem;
  margin-top: 1rem;
  max-width: 280px;
  line-height: 1.75;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-sec);
  margin-bottom: 1.2rem;
}

.footer-col a {
  display: block;
  color: var(--text-sec);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--border-dim);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--text-sec);
  font-size: 0.82rem;
}

.footer-tagline {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.05em;
}

/* ---- Mono ---- */
.mono {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-1 { animation: fadeInUp 0.55s ease both; }
.animate-2 { animation: fadeInUp 0.55s ease 0.12s both; }
.animate-3 { animation: fadeInUp 0.55s ease 0.24s both; }
.animate-4 { animation: fadeInUp 0.55s ease 0.36s both; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  section { padding: 5rem 5%; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

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