/* ================================================
   NAUTIFORGE — style.css
   Theme: Black + Neon Green + Gold tri-palette
   ================================================ */

/* ---------- TOKENS ---------- */
:root {
  --black:        #080808;
  --black-2:      #0f0f0f;
  --black-3:      #181818;
  --card-bg:      #111111;
  --border:       #252525;

  /* Green */
  --green:        #00ff41;
  --green-dim:    #00c832;
  --green-muted:  rgba(0, 255, 65, 0.10);
  --green-glow:   rgba(0, 255, 65, 0.22);

  /* Gold */
  --gold:         #f0b429;
  --gold-light:   #f5c842;
  --gold-muted:   rgba(240, 180, 41, 0.12);
  --gold-glow:    rgba(240, 180, 41, 0.28);
  --gold-border:  rgba(240, 180, 41, 0.45);

  --white:        #f0f0f0;
  --grey:         #808080;
  --grey-light:   #b0b0b0;

  --font-mono:    'Share Tech Mono', monospace;
  --font-body:    'Inter', system-ui, sans-serif;
  --radius:       6px;
  --radius-lg:    12px;
  --transition:   0.2s ease;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ---------- CONTAINER ---------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================================================
   NAVBAR
   ================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--gold-border);
  box-shadow: 0 0 10px var(--gold-glow);
}
.logo-name {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  color: var(--white);
}
.logo-accent { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 32px;
  flex: 1;
}
.nav-links a {
  color: var(--grey-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--gold); }

.nav-auth {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* ---------- BUTTONS ---------- */
.btn-ghost {
  color: var(--grey-light);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: color var(--transition);
}
.btn-ghost:hover { color: var(--white); }

/* Green primary (default) */
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: var(--black);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: var(--radius);
  letter-spacing: 0.03em;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.btn-primary:hover {
  background: #1aff55;
  box-shadow: 0 0 22px var(--green-glow);
  transform: translateY(-1px);
}

/* Gold button */
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: var(--radius);
  letter-spacing: 0.03em;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.btn-gold:hover {
  background: var(--gold-light);
  box-shadow: 0 0 22px var(--gold-glow);
  transform: translateY(-1px);
}

/* Outline (gold tinted) */
.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--gold-border);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: var(--radius);
  letter-spacing: 0.03em;
  transition: background var(--transition), box-shadow var(--transition);
}
.btn-outline:hover {
  background: var(--gold-muted);
  box-shadow: 0 0 16px var(--gold-glow);
}

.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-full { display: block; text-align: center; width: 100%; }

/* ================================================
   HERO
   ================================================ */
.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 1fr 440px;
  align-items: center;
  gap: 60px;
  padding: 80px 60px;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* ---- Animated orb background ---- */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}
.hero-orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(0,255,65,0.18) 0%, transparent 70%);
  top: -120px; left: -100px;
  animation: drift1 12s ease-in-out infinite alternate;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(240,180,41,0.20) 0%, transparent 70%);
  top: 40%; right: -60px;
  animation: drift2 15s ease-in-out infinite alternate;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,200,50,0.10) 0%, transparent 70%);
  bottom: -60px; left: 38%;
  animation: drift3 18s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}
@keyframes drift2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-30px, -20px) scale(1.05); }
}
@keyframes drift3 {
  from { transform: translate(0, 0); }
  to   { transform: translate(20px, -40px); }
}

/* horizontal scan line sweep */
.hero-scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,180,41,0.4), rgba(0,255,65,0.5), transparent);
  animation: scan 6s linear infinite;
  top: 0;
}
@keyframes scan {
  0%   { top: 0; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ---- Hero content ---- */
.hero-eyebrow {
  font-family: var(--font-mono);
  color: var(--green);
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  margin-bottom: 22px;
  position: relative;
}

.hero-title {
  font-size: clamp(3.8rem, 7vw, 6.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
  position: relative;
}
.hero-accent-green { color: var(--green); }
.hero-accent-gold  { color: var(--gold); }

.hero-sub {
  color: var(--grey-light);
  font-size: 1.1rem;
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 36px;
  position: relative;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 52px;
  position: relative;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
}
.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.65rem;
  color: var(--green);
  letter-spacing: -0.02em;
}
.stat-num.gold { color: var(--gold); }
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--gold-border), transparent);
}

/* ---- Terminal widget ---- */
.hero-terminal {
  background: var(--black-3);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(240,180,41,0.10),
    0 0 80px rgba(0,255,65,0.05),
    0 20px 60px rgba(0,0,0,0.6);
  position: relative;
  z-index: 1;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #161616;
  border-bottom: 1px solid var(--gold-border);
}
.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-dot.red    { background: #ff5f57; }
.t-dot.yellow { background: #ffbd2e; }
.t-dot.green  { background: #28c840; }
.t-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--grey);
  margin-left: 8px;
}
.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 2.1;
  color: var(--grey-light);
}
.t-prompt { color: var(--gold); margin-right: 8px; }
.t-green  { color: var(--green); }
.t-gold   { color: var(--gold); }
.t-cursor {
  display: inline-block;
  color: var(--gold);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ================================================
   SECTIONS
   ================================================ */
.section { padding: 96px 0; }
.section-dark { background: var(--black-2); }

.section-eyebrow {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.section-sub {
  color: var(--grey-light);
  font-size: 1.05rem;
  margin-bottom: 56px;
}

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

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.product-card:hover {
  border-color: rgba(0,255,65,0.35);
  box-shadow: 0 0 32px rgba(0,255,65,0.07);
  transform: translateY(-4px);
}
.card-featured {
  border-color: var(--gold-border);
  box-shadow: 0 0 28px rgba(240,180,41,0.12);
}
.card-featured:hover {
  border-color: var(--gold);
  box-shadow: 0 0 36px rgba(240,180,41,0.20);
  transform: translateY(-4px);
}

.card-badge {
  position: absolute;
  top: -1px; right: 24px;
  background: var(--green);
  color: var(--black);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: 0 0 6px 6px;
  font-family: var(--font-mono);
}
.badge-gold   { background: var(--gold); color: var(--black); }
.badge-bundle { background: #a78bfa; }

.card-icon {
  width: 48px; height: 48px;
  color: var(--green);
  margin-bottom: 20px;
}
.card-icon-gold { color: var(--gold); }
.card-icon svg { width: 100%; height: 100%; }

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.card-desc {
  color: var(--grey-light);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 24px;
}
.card-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.card-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--grey-light);
}
.check      { color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.check-gold { color: var(--gold);  font-weight: 700; flex-shrink: 0; margin-top: 1px; }

.card-price { margin-bottom: 20px; }
.price-amount {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.price-period { color: var(--grey); font-size: 0.9rem; margin-left: 4px; }

/* ================================================
   FEATURES GRID
   ================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-icon      { width: 36px; height: 36px; color: var(--green); }
.feature-icon-gold { color: var(--gold); }
.feature-icon svg  { width: 100%; height: 100%; }
.feature-item h4   { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.feature-item p    { color: var(--grey); font-size: 0.9rem; line-height: 1.65; }

/* ================================================
   TESTIMONIALS
   ================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition);
}
.testimonial:hover { border-color: var(--gold-border); }
.t-quote {
  color: var(--grey-light);
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}
.t-quote::before { content: '"'; color: var(--gold); font-size: 1.5rem; line-height: 0; vertical-align: -4px; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 40px; height: 40px;
  background: var(--green-muted);
  border: 1px solid var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  flex-shrink: 0;
}
.t-avatar-gold {
  background: var(--gold-muted);
  border-color: var(--gold);
  color: var(--gold);
}
.t-author strong { display: block; font-size: 0.9rem; }
.t-author span   { display: block; font-size: 0.78rem; color: var(--grey); }

/* ================================================
   CTA BAND
   ================================================ */
.section-cta {
  background: linear-gradient(135deg, rgba(0,255,65,0.06) 0%, rgba(240,180,41,0.09) 100%);
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
  padding: 80px 24px;
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.cta-inner p {
  color: var(--grey-light);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--black-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  padding-bottom: 48px;
}
.footer-brand p {
  color: var(--grey);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 200px;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 4px;
}
.footer-col a { color: var(--grey); font-size: 0.88rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { color: var(--grey); font-size: 0.8rem; }

/* ================================================
   MODALS
   ================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay:target { display: flex; }

.modal {
  background: var(--black-3);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 0 60px rgba(240,180,41,0.10);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  color: var(--grey);
  font-size: 1.1rem;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--white); }

.modal-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.modal-sub   { color: var(--grey); font-size: 0.9rem; margin-bottom: 28px; }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label {
  font-size: 0.82rem; font-weight: 600;
  color: var(--grey-light); letter-spacing: 0.02em;
}
.form-group input {
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240,180,41,0.14);
}
.form-group input::placeholder { color: var(--grey); }

.modal-btn { margin-top: 8px; }
.modal-switch {
  text-align: center;
  font-size: 0.85rem;
  color: var(--grey);
  margin-top: 20px;
}
.modal-switch a { color: var(--gold); font-weight: 600; }
.modal-switch a:hover { text-decoration: underline; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 24px;
    min-height: auto;
  }
  .hero-terminal { max-width: 480px; }
  .products-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-inner { gap: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn-lg { text-align: center; }
  .modal { padding: 28px 20px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

/* ================================================
   PHP INTEGRATION — flash messages, auth state
   ================================================ */

/* ---- Flash messages ---- */
.flash {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
  max-width: 90vw;
  padding: 14px 48px 14px 18px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  background: var(--black-3);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  animation: flashIn 0.3s ease;
}
@keyframes flashIn {
  from { opacity: 0; transform: translate(-50%, -16px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.flash-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.flash-success {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 24px var(--green-glow), 0 8px 32px rgba(0, 0, 0, 0.6);
}
.flash-error {
  border-color: #ff4d4d;
  color: #ff6b6b;
  box-shadow: 0 0 24px rgba(255, 77, 77, 0.22), 0 8px 32px rgba(0, 0, 0, 0.6);
}
.flash-info {
  border-color: var(--gold-border);
  color: var(--gold);
  box-shadow: 0 0 24px var(--gold-glow), 0 8px 32px rgba(0, 0, 0, 0.6);
}

.flash-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px;
  line-height: 1;
  transition: opacity var(--transition);
}
.flash-close:hover { opacity: 1; }

/* ---- Logged-in user chip in navbar ---- */
.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--gold);
  padding: 6px 14px;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  background: var(--gold-muted);
  white-space: nowrap;
}
.nav-user-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ---- <button> reset so it matches <a> buttons exactly ---- */
button.btn-primary,
button.btn-gold,
button.btn-outline {
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  line-height: 1.6;
  width: 100%;
}
button.btn-outline {
  border: 1.5px solid var(--gold-border);
  background: transparent;
}

/* ---- Form hint text ---- */
.field-hint {
  color: var(--grey);
  font-weight: 400;
  font-size: 0.76rem;
  letter-spacing: 0;
}

/* ---- Invalid field state ---- */
.form-group input:invalid:not(:placeholder-shown) {
  border-color: rgba(255, 77, 77, 0.6);
}
.form-group input:invalid:not(:placeholder-shown):focus {
  box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.14);
}

@media (max-width: 768px) {
  .flash {
    min-width: 0;
    width: calc(100vw - 32px);
    font-size: 0.86rem;
  }
  .nav-user { display: none; }
}
