/* --- VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --secondary: #3b82f6;
  --secondary-hover: #2563eb;
  --bg-body: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --accent: #f8fafc;
  --border: #e2e8f0;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 8px;
}

/* --- RESET & BASE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  transition: all 0.2s ease;
  color: inherit;
}

ul {
  list-style: none;
}

/* --- LAYOUT --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  color: var(--primary);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

p {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* --- BUTTONS --- */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: #fff !important;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
  border: 1px solid transparent;
}

.cta-button:hover {
  background: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary) !important;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: var(--accent);
  border-color: var(--secondary);
}

/* --- HEADER --- */
header {
  background: rgba(255, 255, 255, 0.8);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a:not(.cta-button) {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:not(.cta-button):hover {
  color: var(--secondary);
}

/* --- HERO --- */
.hero {
  padding: 180px 0 120px;
  background: 
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
  text-align: center;
}

.hero .container {
  max-width: 900px;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-inline: auto;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* --- GRID & CARDS --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.card {
  padding: 40px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}

.card .icon-wrapper {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.card h3 {
  margin-bottom: 0;
}

.card p {
  margin-bottom: 0;
  font-size: 1rem;
}

/* --- DATA INTEGRITY --- */
.integrity-section {
  background: var(--primary);
  color: white;
  border-radius: 32px;
  padding: 80px;
  margin: 0 24px;
}

.integrity-section h2, .integrity-section p {
  color: white;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.metric-box {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  padding: 32px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-box h4 {
  color: var(--secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.metric-value {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: white;
}

.metric-box p {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* --- FAQ --- */
#faq {
  background: var(--accent);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s;
}

.faq-item:hover {
  border-color: var(--secondary);
}

.faq-question {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.125rem;
  margin-bottom: 12px;
  display: block;
}

/* --- CONTACT --- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  text-align: left;
}

.contact-form {
  background: white;
  padding: 48px;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 24px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--primary);
}

input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--accent);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

button[type="submit"] {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 16px;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s;
}

button[type="submit"]:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: white;
  padding: 80px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.footer-links h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1rem;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
}

/* --- DECORATIVE PCB TRACES --- */
.pcb-decor {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 400px;
  pointer-events: none;
  opacity: 0.15;
  z-index: 1; /* Below content container */
}

.pcb-left {
  left: -100px;
  background-image: url("data:image/svg+xml,%3Csvg width='400' height='800' viewBox='0 0 400 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 100 L150 100 L200 150 L200 300 L280 380 L280 500 L350 570' stroke='%233b82f6' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='350' cy='570' r='4' fill='%233b82f6'/%3E%3Cpath d='M0 250 L120 250 L180 310 L180 450 L240 510' stroke='%233b82f6' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='240' cy='510' r='4' fill='%233b82f6'/%3E%3Cpath d='M0 500 L80 500 L140 560 L140 700' stroke='%233b82f6' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='140' cy='700' r='4' fill='%233b82f6'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
}

.pcb-right {
  right: -100px;
  transform: scaleX(-1);
  background-image: url("data:image/svg+xml,%3Csvg width='400' height='800' viewBox='0 0 400 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 100 L150 100 L200 150 L200 300 L280 380 L280 500 L350 570' stroke='%233b82f6' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='350' cy='570' r='4' fill='%233b82f6'/%3E%3Cpath d='M0 250 L120 250 L180 310 L180 450 L240 510' stroke='%233b82f6' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='240' cy='510' r='4' fill='%233b82f6'/%3E%3Cpath d='M0 500 L80 500 L140 560 L140 700' stroke='%233b82f6' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='140' cy='700' r='4' fill='%233b82f6'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
}

section {
  position: relative;
  overflow: hidden;
}

section .container {
  position: relative;
  z-index: 10; /* Above traces */
}

/* --- PROCESS SECTION --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 8px var(--accent);
}

.process-step h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.process-step p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

/* --- UTILS --- */
.audit-field {
  display: none;
}

/* --- MOBILE --- */
@media (max-width: 1024px) {
  .integrity-section {
    padding: 60px 40px;
  }
  .split, .contact-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .process-grid::before {
    display: none;
  }
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: white;
  padding: 80px 0 40px;
  position: relative;
  z-index: 100; /* Ensure footer covers PCB traces */
}
