/* 
  Pree Infotech — Replit Matched Design System & Vector Graphics
  Colors: Deep Emerald-Charcoal (#101821), Mint Emerald Accent (#4feba9 / #70f2b8), Amber Accent (#e7ad69), Surface (#172530 / #1e3440)
  Fonts: Inter, Space Grotesk, IBM Plex Mono
*/

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,600;1,400&family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg-primary: #101821;
  --bg-secondary: #141f2a;
  --bg-surface: #172530;
  --bg-card: #1e3440;
  --bg-card-hover: #243e4d;
  --bg-emerald-dim: rgba(79, 235, 169, 0.08);

  --accent-mint: #4feba9;
  --accent-teal: #70f2b8;
  --accent-amber: #e7ad69;

  --text-primary: #f4f0df;
  --text-secondary: #d7e2df;
  --text-muted: #87969b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(79, 235, 169, 0.25);
  --border-amber: rgba(231, 173, 105, 0.3);

  --font-heading: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Background Grid Overlay */
.grid-lines {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Top Live Status Bar */
.top-status-bar {
  background: #090e14;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.4rem 0;
  color: var(--text-muted);
}
.status-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-teal);
  background: var(--bg-emerald-dim);
  border: 1px solid var(--border-medium);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}
.dot-ping {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-mint);
  box-shadow: 0 0 8px var(--accent-mint);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(16, 24, 33, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand-badge {
  position: relative;
  width: 36px;
  height: 36px;
  background: #17382f;
  border: 1px solid rgba(79, 235, 169, 0.6);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent-teal);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
}
.brand-badge::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(79, 235, 169, 0.4);
  border-radius: 6px;
  pointer-events: none;
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}
.brand-dot {
  color: var(--accent-teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-normal);
}
.nav-link:hover {
  color: var(--accent-teal);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}
.btn-mint {
  background: var(--accent-mint);
  color: #101821;
  border-color: var(--accent-mint);
}
.btn-mint:hover {
  background: var(--accent-teal);
  box-shadow: 0 0 20px rgba(79, 235, 169, 0.3);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}
.btn-outline:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 4rem 0 5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}
.eyebrow-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-badges-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-subtle);
  padding-top: 1.25rem;
}
.hero-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Attack Surface Radar Box */
.radar-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.radar-box-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}
.radar-canvas-container {
  width: 100%;
  height: 260px;
  position: relative;
}
canvas#radarCanvas {
  width: 100%;
  height: 100%;
}
.radar-box-footer {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-teal);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
  margin-top: 1rem;
}

/* Services Section */
.services-section {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-top: 0.5rem;
}
.section-subtext {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 320px;
  line-height: 1.5;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-card);
  transform: translateY(-2px);
}
.service-card.featured {
  border-color: var(--border-medium);
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(23, 56, 47, 0.4) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.card-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-teal);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.card-h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}
.card-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.card-items-list {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: grid;
  gap: 0.5rem;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 1rem;
}
.card-items-list li::before {
  content: '⚡ ';
  color: var(--accent-mint);
}

/* Approach Section */
.approach-section {
  padding: 5.5rem 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.principle-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}
.principle-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-teal);
  margin-bottom: 0.5rem;
}
.principle-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

/* Proof Section (Case Studies with Replit Vector Graphic Orbs) */
.proof-section {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.proof-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
.proof-card-main {
  background: var(--bg-card);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
}
/* Replit Vector Graphic Circles */
.glow-circle-amber-lg {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(231, 173, 105, 0.2);
  background: rgba(231, 173, 105, 0.06);
  pointer-events: none;
  transition: transform 0.7s ease;
}
.proof-card-main:hover .glow-circle-amber-lg {
  transform: scale(1.1);
}
.glow-circle-amber-sm {
  position: absolute;
  top: 80px;
  right: 60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(231, 173, 105, 0.2);
  pointer-events: none;
}

.proof-card-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.proof-mini-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.tag-amber {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-amber);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Resources & FAQ Section */
.resources-section {
  padding: 5.5rem 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}
.faq-list {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
  max-width: 800px;
}
.faq-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
}
.faq-question {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-answer {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-top: 0.75rem;
  line-height: 1.6;
  display: none;
}
.faq-item.active .faq-answer {
  display: block;
}
.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
  color: var(--accent-mint);
}

/* CTA Banner */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #0d1a24 100%);
  text-align: center;
}
.cta-container {
  max-width: 680px;
  margin: 0 auto;
}
.cta-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}
.cta-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  background: #090e14;
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Dialog Modal */
dialog.audit-modal {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 540px;
  width: 90%;
  margin: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out, display 0.25s allow-discrete, overlay 0.25s allow-discrete;
}
dialog.audit-modal[open] {
  opacity: 1;
  transform: scale(1);
  @starting-style { opacity: 0; transform: scale(0.95); }
}
dialog.audit-modal::backdrop {
  background: rgba(16, 24, 33, 0.85);
  backdrop-filter: blur(8px);
}
.modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-body { padding: 1.75rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-mint);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
