/* ========================================
   GuardianSoc Pro – Public Website Styles
   ======================================== */
:root {
  --primary: #1F6FFF;
  --primary-dark: #1A5CD6;
  --primary-glow: rgba(31,111,255,.35);
  --accent: #00E5FF;
  --accent-glow: rgba(0,229,255,.25);
  --bg: #0A0F1C;
  --bg-surface: #0F1F3D;
  --bg-card: #162B52;
  --text: #FFFFFF;
  --text-secondary: #D1D5DB;
  --text-muted: #9CA3AF;
  --border: #1E3A5F;
  --success: #10B981;
  --danger: #EF4444;
  --radius: 12px;
  --shadow-card: 0 4px 24px rgba(0,0,0,.25);
  --shadow-glow: 0 0 30px var(--primary-glow);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

.gsp-container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- Smooth scroll & Selection ---- */
html { scroll-behavior: smooth; }
::selection { background: var(--primary); color: #fff; }

/* ---- Fade-in animation ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.gsp-fade-in { animation: fadeInUp .6s ease both; }

/* ---- Navigation ---- */
.gsp-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,15,28,.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30,58,95,.5);
  transition: background .3s;
}
.gsp-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.gsp-nav-brand img { height: 36px; transition: transform .2s; }
.gsp-nav-brand img:hover { transform: scale(1.05); }
.gsp-nav-links { display: flex; align-items: center; gap: 1.75rem; }
.gsp-nav-links a {
  color: var(--text-secondary); font-weight: 500; font-size: .95rem;
  transition: color .2s; position: relative;
}
.gsp-nav-links a:hover { color: var(--text); }
.gsp-nav-links a:not(.gsp-btn)::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--accent); border-radius: 1px; transition: width .3s;
}
.gsp-nav-links a:not(.gsp-btn):hover::after { width: 100%; }
.gsp-nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.25rem; cursor: pointer; }

@media (max-width: 768px) {
  .gsp-nav-toggle { display: block; }
  .gsp-nav-links {
    display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-surface); padding: 1rem; border-bottom: 1px solid var(--border);
  }
  .gsp-nav-links.open { display: flex; }
}

/* ---- Buttons ---- */
.gsp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: .95rem;
  transition: all .25s ease; cursor: pointer; border: none; text-decoration: none;
  position: relative; overflow: hidden;
}
.gsp-btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.1), transparent);
  opacity: 0; transition: opacity .25s;
}
.gsp-btn:hover::after { opacity: 1; }
.gsp-btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 4px 16px var(--primary-glow); }
.gsp-btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 24px var(--primary-glow); }
.gsp-btn-accent { background: linear-gradient(135deg, var(--accent), #00B4D8); color: var(--bg); box-shadow: 0 4px 16px var(--accent-glow); }
.gsp-btn-accent:hover { color: var(--bg); transform: translateY(-2px); box-shadow: 0 6px 24px var(--accent-glow); }
.gsp-btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text-secondary); }
.gsp-btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.gsp-btn-lg { padding: .9rem 2.4rem; font-size: 1.05rem; }
.gsp-btn-block { width: 100%; }
.gsp-btn-google {
  background: #fff; color: #333; border: 1px solid #e0e0e0;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.gsp-btn-google:hover { background: #f7f7f7; color: #333; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.gsp-btn-google img { height: 20px; }

/* ---- Hero ---- */
.gsp-hero {
  padding: 7rem 0 5rem; text-align: center;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(31,111,255,.2) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 50%, rgba(0,229,255,.08) 0%, transparent 50%);
  position: relative; overflow: hidden;
}
.gsp-hero::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(31,111,255,.04) 90deg, transparent 180deg);
  animation: heroRotate 20s linear infinite;
}
@keyframes heroRotate { to { transform: rotate(360deg); } }
.gsp-hero h1 {
  font-size: 3.25rem; font-weight: 800; line-height: 1.12; margin-bottom: 1.25rem;
  position: relative; animation: fadeInUp .7s ease both;
}
.gsp-hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.gsp-hero p {
  font-size: 1.2rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 2.25rem;
  position: relative; animation: fadeInUp .7s ease .15s both;
}
.gsp-hero-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  position: relative; animation: fadeInUp .7s ease .3s both;
}

@media (max-width: 640px) {
  .gsp-hero { padding: 5rem 0 3rem; }
  .gsp-hero h1 { font-size: 2.15rem; }
  .gsp-hero p { font-size: 1rem; }
}

/* ---- Features ---- */
.gsp-features { padding: 5rem 0; }
.gsp-section-title { text-align: center; font-size: 2rem; font-weight: 700; margin-bottom: .75rem; }
.gsp-section-sub { text-align: center; color: var(--text-muted); max-width: 520px; margin: 0 auto 3rem; }
.gsp-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.5rem; }
.gsp-feature-card {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; transition: border-color .3s, transform .3s, box-shadow .3s;
}
.gsp-feature-card:hover {
  border-color: var(--primary); transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(31,111,255,.15);
}
.gsp-feature-icon {
  font-size: 2rem; margin-bottom: 1rem;
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(0,229,255,.08); color: var(--accent);
}
.gsp-feature-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .5rem; }
.gsp-feature-card p { color: var(--text-muted); font-size: .95rem; }

/* ---- Plans / Pricing ---- */
.gsp-plans { padding: 5rem 0; }
.gsp-plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 1.5rem; max-width: 960px; margin: 0 auto; }
.gsp-plan-card {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.5rem 2rem; text-align: center; position: relative;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.gsp-plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.gsp-plan-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 40px var(--primary-glow);
  background: linear-gradient(180deg, rgba(31,111,255,.06) 0%, var(--bg-surface) 40%);
}
.gsp-plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  font-size: .75rem; font-weight: 700;
  padding: .35rem 1.2rem; border-radius: 20px; text-transform: uppercase; letter-spacing: .06em;
  box-shadow: 0 4px 12px var(--primary-glow);
}
.gsp-plan-name { font-size: 1.1rem; font-weight: 600; color: var(--text-secondary); margin-bottom: .5rem; }
.gsp-plan-price { font-size: 2.5rem; font-weight: 800; margin-bottom: .25rem; }
.gsp-plan-price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.gsp-plan-duration { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.5rem; }
.gsp-plan-features { list-style: none; text-align: left; margin-bottom: 2rem; }
.gsp-plan-features li { padding: .4rem 0; color: var(--text-secondary); font-size: .95rem; }
.gsp-plan-features li i { color: var(--success); margin-right: .5rem; width: 16px; text-align: center; }

/* ---- Auth Forms ---- */
.gsp-auth { padding: 4rem 0; display: flex; justify-content: center; animation: fadeIn .5s ease; }
.gsp-auth-card {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.5rem; width: 100%; max-width: 440px;
  box-shadow: var(--shadow-card);
}
.gsp-auth-card h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: .35rem; }
.gsp-auth-card .gsp-auth-sub { color: var(--text-muted); margin-bottom: 1.5rem; }

.gsp-form-group { margin-bottom: 1.25rem; }
.gsp-form-group label { display: block; font-weight: 500; font-size: .9rem; color: var(--text-secondary); margin-bottom: .4rem; }
.gsp-form-control {
  width: 100%; padding: .75rem 1rem; font-size: .95rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); transition: border-color .25s, box-shadow .25s;
}
.gsp-form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.gsp-form-control::placeholder { color: var(--text-muted); }

.gsp-divider {
  display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0;
  color: var(--text-muted); font-size: .85rem;
}
.gsp-divider::before, .gsp-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.gsp-form-error {
  background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3);
  color: #FCA5A5; border-radius: 8px; padding: .75rem 1rem; margin-bottom: 1rem; font-size: .9rem;
}
.gsp-form-error ul { margin: 0; padding-left: 1.25rem; }

.gsp-form-link { color: var(--text-muted); font-size: .9rem; text-align: center; margin-top: 1.25rem; }
.gsp-form-link a { color: var(--primary); font-weight: 500; }

/* ---- Dashboard ---- */
.gsp-dashboard { padding: 3rem 0; animation: fadeIn .5s ease; }
.gsp-dash-header { margin-bottom: 2rem; }
.gsp-dash-header h1 { font-size: 1.75rem; font-weight: 700; }
.gsp-dash-header p { color: var(--text-muted); }

.gsp-dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 1.5rem; }
.gsp-dash-card {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-card);
  transition: border-color .3s, transform .3s;
}
.gsp-dash-card:hover { border-color: rgba(31,111,255,.4); transform: translateY(-3px); }
.gsp-dash-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.gsp-dash-card h3 i { color: var(--accent); }

.gsp-stat { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.gsp-stat:last-child { border-bottom: none; }
.gsp-stat-label { color: var(--text-muted); font-size: .9rem; }
.gsp-stat-value { font-weight: 600; }

.gsp-badge {
  display: inline-block; padding: .2rem .65rem; border-radius: 20px; font-size: .8rem; font-weight: 600;
}
.gsp-badge-success { background: rgba(16,185,129,.15); color: var(--success); }
.gsp-badge-danger { background: rgba(239,68,68,.15); color: var(--danger); }
.gsp-badge-warning { background: rgba(245,158,11,.15); color: #F59E0B; }

/* ---- Account / Form enhancements ---- */
.gsp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .gsp-form-row { grid-template-columns: 1fr; } }
.gsp-field-error { display: block; color: var(--danger); font-size: .82rem; margin-top: .25rem; }
.gsp-linked-badge { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 1rem; }

/* ---- Downloads Page ---- */
.gsp-downloads { padding: 3rem 0; animation: fadeIn .5s ease; }
.gsp-download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.5rem; margin-bottom: 4rem; }
.gsp-download-card {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; text-align: center;
  box-shadow: var(--shadow-card); transition: border-color .3s, transform .3s, box-shadow .3s;
}
.gsp-download-card:hover {
  border-color: var(--accent); transform: translateY(-6px);
  box-shadow: 0 8px 32px var(--accent-glow);
}
.gsp-download-card h3 { font-size: 1.2rem; font-weight: 700; margin: .75rem 0 .25rem; }
.gsp-download-card p { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.25rem; }
.gsp-download-icon {
  font-size: 2.5rem; color: var(--accent);
  width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 16px; background: rgba(0,229,255,.08); margin-bottom: .25rem;
}

.gsp-how-it-works { margin-top: 2rem; text-align: center; }
.gsp-steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 2rem; margin-top: 2rem; }
.gsp-step {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem;
}
.gsp-step-num {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  font-weight: 700; border-radius: 50%; margin-bottom: 1rem; font-size: 1.1rem;
  box-shadow: 0 4px 16px var(--primary-glow);
}
.gsp-step h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.gsp-step p { color: var(--text-muted); font-size: .9rem; }

/* ── Legal Pages (Privacy & Terms) ── */
.gsp-legal { padding: 6rem 0 4rem; }
.gsp-legal-header { text-align: center; margin-bottom: 3rem; }
.gsp-legal-header h1 {
  font-size: 2.4rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: .5rem;
}
.gsp-legal-content {
  max-width: 820px; margin: 0 auto;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 3rem;
}
.gsp-legal-content h2 {
  font-size: 1.3rem; font-weight: 700; color: var(--text-primary);
  margin: 2.5rem 0 1rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.gsp-legal-content h2:first-child { margin-top: 0; }
.gsp-legal-content h3 {
  font-size: 1.1rem; font-weight: 600; color: var(--text-secondary);
  margin: 1.5rem 0 .75rem;
}
.gsp-legal-content p {
  color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; font-size: .95rem;
}
.gsp-legal-content ul {
  list-style: none; padding: 0; margin: 0 0 1.2rem;
}
.gsp-legal-content ul li {
  position: relative; padding: .5rem 0 .5rem 1.5rem;
  color: var(--text-muted); font-size: .95rem; line-height: 1.7;
}
.gsp-legal-content ul li::before {
  content: ''; position: absolute; left: 0; top: .95rem;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
}
.gsp-legal-content ul li i { position: relative; z-index: 1; }
.gsp-legal-content ul li:has(> i)::before { display: none; }
.gsp-legal-content a {
  color: var(--primary-teal); text-decoration: none; font-weight: 500;
}
.gsp-legal-content a:hover { text-decoration: underline; }
.gsp-legal-contact {
  background: rgba(31, 111, 255, .06); border: 1px solid rgba(31, 111, 255, .15);
  border-radius: 12px; padding: 1.5rem 2rem; margin-top: 1rem;
}
.gsp-legal-contact p { margin-bottom: .5rem; }
.gsp-legal-contact p:last-child { margin-bottom: 0; }
@media (max-width: 768px) {
  .gsp-legal { padding: 4rem 0 2rem; }
  .gsp-legal-header h1 { font-size: 1.8rem; }
  .gsp-legal-content { padding: 1.5rem; }
}

/* ---- Alerts ---- */
.gsp-alert {
  max-width: 1140px; margin: 1rem auto; padding: .75rem 1.25rem; border-radius: 8px;
  font-size: .95rem; font-weight: 500; animation: fadeInUp .4s ease;
}
.gsp-alert-success { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: var(--success); }
.gsp-alert-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: var(--danger); }

/* ---- Footer ---- */
.gsp-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border); margin-top: 4rem;
  background: linear-gradient(180deg, transparent 0%, rgba(15,31,61,.4) 100%);
}
.gsp-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.gsp-footer-grid h4 { font-size: .9rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1rem; color: var(--text-secondary); }
.gsp-footer-grid a { display: block; color: var(--text-muted); font-size: .9rem; padding: .2rem 0; }
.gsp-footer-grid a:hover { color: var(--text); }
.gsp-footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.gsp-footer-bottom p { color: var(--text-muted); font-size: .85rem; }

@media (max-width: 768px) {
  .gsp-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .gsp-footer-grid { grid-template-columns: 1fr; }
}
