/* ==========================================================================
   RCC Resistor Calculator & Scanner Pro - Styling System
   Theme: Dark Cyber-Obsidian Glassmorphism
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #070a10;
  --bg-surface: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(0, 242, 254, 0.3);

  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-green: #00ff87;
  --accent-gold: #ffb703;
  --accent-purple: #7000ff;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --gradient-cyan: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --gradient-green: linear-gradient(135deg, #00ff87 0%, #60efff 100%);
  --gradient-purple: linear-gradient(135deg, #7000ff 0%, #00f2fe 100%);
  --gradient-gold: linear-gradient(135deg, #ffb703 0%, #fb8500 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Glows */
  --shadow-glow-cyan: 0 0 35px rgba(0, 242, 254, 0.25);
  --shadow-glow-purple: 0 0 35px rgba(112, 0, 255, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

  /* Layout */
  --nav-height: 80px;
  --container-width: 1240px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Cyber Background Grid & Orbs */
.bg-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: orbFloat 18s ease-in-out infinite alternate;
}

.orb-1 {
  top: -10%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: var(--accent-cyan);
}

.orb-2 {
  top: 40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: var(--accent-purple);
  animation-delay: -6s;
}

.orb-3 {
  bottom: -10%;
  left: -5%;
  width: 450px;
  height: 450px;
  background: var(--accent-green);
  animation-delay: -12s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 60px) scale(1.1); }
  100% { transform: translate(-30px, -40px) scale(0.95); }
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-green {
  background: var(--gradient-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gradient-cyan);
  color: #040914;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.5);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-green {
  background: rgba(0, 255, 135, 0.1);
  border-color: rgba(0, 255, 135, 0.25);
  color: var(--accent-green);
}

/* Header & Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(7, 10, 16, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
  object-fit: cover;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.brand-name span {
  color: var(--accent-cyan);
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-cyan);
  border-radius: 2px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 80px;
  position: relative;
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.store-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-highlight);
  border-radius: 14px;
  color: var(--text-primary);
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.store-badge-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-cyan);
  border-color: var(--accent-cyan);
}

.store-icon {
  font-size: 2rem;
  color: var(--accent-cyan);
}

.store-text-small {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.store-text-large {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

/* Hero Mockup Frame */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.graphic-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-highlight);
  box-shadow: var(--shadow-glow-cyan), var(--shadow-card);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.graphic-frame:hover {
  transform: scale(1.02);
}

.graphic-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Stats Counter Bar */
.stats-bar {
  margin-top: 40px;
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.stat-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-top: 12px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 16px;
}

/* Features Grid */
.features-section {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px;
  backdrop-filter: blur(16px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-cyan);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-highlight);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

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

.feature-tag {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

/* Screenshots Showcase Section */
.screenshots-section {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.5) 50%, transparent 100%);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.screenshot-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: var(--transition);
  aspect-ratio: 9 / 19;
}

.screenshot-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screenshot-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 10, 16, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}

.screenshot-card:hover .screenshot-overlay {
  opacity: 1;
}

.zoom-btn {
  background: var(--gradient-cyan);
  color: #040914;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.5);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 16, 0.95);
  backdrop-filter: blur(25px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-highlight);
  box-shadow: var(--shadow-glow-cyan);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: var(--accent-cyan);
  color: #000;
}

/* Download CTA Banner */
.cta-section {
  padding: 100px 0;
}

.cta-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(7, 10, 16, 0.95) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow-cyan);
}

.cta-box h2 {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px auto;
}

/* Page Layouts for Privacy, Terms, Contact */
.page-header {
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 40px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.6) 0%, transparent 100%);
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-top: 10px;
}

.legal-content {
  padding: 60px 0 100px 0;
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 48px;
  backdrop-filter: blur(16px);
}

.legal-container h2 {
  font-size: 1.75rem;
  margin-top: 36px;
  margin-bottom: 16px;
  color: var(--accent-cyan);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.legal-container h2:first-child {
  margin-top: 0;
}

.legal-container h3 {
  font-size: 1.25rem;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-container p, .legal-container ul {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-container ul {
  padding-left: 24px;
}

.legal-container li {
  margin-bottom: 8px;
}

.contact-card-highlight {
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin: 24px 0;
}

/* Contact Page Layout */
.contact-section {
  padding: 60px 0 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.info-details h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.info-details p, .info-details a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}

.info-details a:hover {
  color: var(--accent-cyan);
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
  backdrop-filter: blur(16px);
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: rgba(7, 10, 16, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.map-container {
  margin-top: 40px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  height: 300px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Toast Alert */
.toast-msg {
  display: none;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 500;
}

.toast-success {
  background: rgba(0, 255, 135, 0.15);
  border: 1px solid rgba(0, 255, 135, 0.3);
  color: var(--accent-green);
}

/* Footer */
.footer {
  background: #04070d;
  border-top: 1px solid var(--border-color);
  padding: 70px 0 30px 0;
  margin-top: auto;
}

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

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    text-align: center;
    align-items: center;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(7, 10, 16, 0.98);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    transform: translateY(-150%);
    transition: var(--transition);
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .mobile-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .legal-container {
    padding: 24px;
  }
}
