/* Nanonets Reducto Competitor Page - Clean Modern Design */
:root {
  /* Nanonets Colors */
  --blue-900: #13152A;
  --blue-800: #1D2554;
  --blue-700: #3A4DB2;
  --blue-600: #546FFF;
  --blue-300: #BBC5FF;
  --blue-200: #EAEDFF;
  --blue-150: #F2F4FF;
  --blue-100: #F8FAFF;
  
  --black: #1F2129;
  --grey: #676767;
  --grey-light: #9CA3AF;
  --greyish-blue: #404558;
  --white: #FFFFFF;
  
  --green-700: #18855E;
  --green-600: #41A451;
  --orange-600: #ED6E33;
  --red-600: #D02B2B;
  --yellow-700: #995C00;
  
  /* Layout */
  --container-w: 1200px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #546FFF 0%, #3A4DB2 100%);
  --gradient-dark: linear-gradient(180deg, #13152A 0%, #1D2554 100%);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

html {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

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

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* Typography */
.title-80 {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 24px;
  color: var(--black);
}

.title-48 {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 20px;
}

.title-36 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 16px;
}

.title-24 {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin: 0 0 16px;
  text-align: center;
}

.title-20 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 12px;
}

.body-16 {
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.6;
  margin: 0 0 16px;
  color: var(--grey);
}

.body-14 {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 12px;
  color: var(--grey);
}

.body-12 {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 8px;
  color: var(--grey-light);
}

.muted {
  color: var(--grey);
}

.brand-reducto {
  color: #9d17a0;
  font-weight: 600;
}

.brand-nanonets {
  color: var(--blue-600);
  font-weight: 600;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--black);
  font-size: 18px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.brand:hover {
  opacity: 0.8;
}

.brand img {
  height: 32px;
  width: auto;
}

.brand-text {
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--black);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-600);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .nav-link {
    display: none;
  }
  
  .nav-link:last-child {
    display: inline-block;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: center;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(84, 111, 255, 0.25);
}

.btn-primary:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(84, 111, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--blue-200);
}

.btn-secondary:hover {
  background: var(--blue-100);
  border-color: var(--blue-300);
}

.btn-secondary-demo {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--blue-300);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  padding: 16px 32px !important;
  font-size: 16px !important;
  height: auto;
  min-height: 48px;
  box-sizing: border-box;
  line-height: 1.5;
}

.btn-secondary-demo:hover {
  background: var(--blue-100);
  border-color: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-team-img {
  height: 24px;
  width: auto;
  border-radius: 50%;
  flex-shrink: 0;
}

.btn-ghost {
  background: transparent;
  color: var(--black);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* Hero Section */
.hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFF 100%);
  padding: 120px 0 140px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1400px;
  height: 1400px;
  background: radial-gradient(circle, rgba(84, 111, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-copy {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.hero .title-80 {
  margin-bottom: 50px;
  margin-top: -10px;
}

.hero .body-16 {
  font-size: 20px;
  margin: 0 auto 32px;
  max-width: 700px;
}

/* Chips */
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 32px 0;
  justify-content: center;
}

.chip {
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--white);
  color: var(--blue-700);
  border: 1px solid var(--blue-200);
  font-weight: 500;
  transition: all 0.2s ease;
}

.chip:hover {
  background: var(--blue-100);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* CTA Row */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 40px 0;
  justify-content: center;
}

.cta-row .btn {
  font-size: 16px;
  padding: 16px 32px;
}

.hero-subproof {
  margin-top: 48px;
  font-size: 15px;
}

/* Logo Fader */
.logo-fader {
  position: relative;
  height: 80px;
  max-width: 1000px;
  margin: 48px auto 0;
}

.fade-logo {
  position: absolute;
  top: 12px;
  height: 56px;
  width: auto;
  opacity: 0;
  filter: grayscale(100%) brightness(0.9);
  will-change: opacity, clip-path;
  pointer-events: none;
  animation: logoReveal calc(var(--dur, 8s) * 3) ease-in-out infinite;
  animation-delay: calc(var(--batch) * var(--dur, 8s));
}

.fade-logo[style*="--slot:0"] { left: 0%; }
.fade-logo[style*="--slot:1"] { left: 25%; }
.fade-logo[style*="--slot:2"] { left: 50%; }
.fade-logo[style*="--slot:3"] { left: 75%; }

@keyframes logoReveal {
  0% { opacity: 0; clip-path: inset(0 0 100% 0); }
  10% { opacity: 0.7; clip-path: inset(0 0 0 0); }
  33.33% { opacity: 0.7; clip-path: inset(0 0 0 0); }
  43% { opacity: 0; clip-path: inset(100% 0 0 0); }
  100% { opacity: 0; }
}

.more-label {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey);
  font-size: 14px;
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .fade-logo {
    animation: none;
    opacity: 0.6;
  }
}

/* Mobile logo adjustments */
@media (max-width: 768px) {
  .logo-fader {
    height: 60px;
    max-width: 100%;
    padding: 0 20px;
  }
  
  .fade-logo {
    height: 40px;
    top: 10px;
    max-width: 20%;
    object-fit: contain;
  }
  
  .fade-logo[style*="--slot:0"] { left: 2%; }
  .fade-logo[style*="--slot:1"] { left: 28%; }
  .fade-logo[style*="--slot:2"] { left: 54%; }
  .fade-logo[style*="--slot:3"] { left: 80%; }
  
  .more-label {
    display: none;
  }
  
  /* Hero title mobile adjustment */
  .hero .title-80 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 32px;
    padding: 0 10px;
  }
  
  .hero .body-16 {
    font-size: 18px;
    padding: 0 10px;
  }
}

/* Sections */
.section {
  padding: 120px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }
  
  .hero {
    padding: 80px 0 100px;
  }
}

/* Compare Section */
.compare {
  background: var(--white);
}

.table-wrap {
  overflow: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-top: 32px;
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
}

.compare-table th,
.compare-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--blue-150);
  text-align: left;
  font-size: 15px;
}

.compare-table thead th {
  background: var(--blue-100);
  font-weight: 700;
  color: var(--blue-800);
  position: sticky;
  top: 0;
  font-size: 16px;
}

.compare-table tbody tr {
  transition: background 0.2s ease;
}

.compare-table tbody tr:hover {
  background: var(--blue-100);
}

.compare-table tbody tr:nth-child(even) {
  background: #FAFBFF;
}

.compare-table tbody tr:nth-child(even):hover {
  background: var(--blue-100);
}

.compare-table td:first-child {
  font-weight: 500;
  color: var(--black);
}

#compare-note {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
}

/* Examples Section */
.examples {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFF 100%);
}

/* Tabs */
.tabs {
  margin-top: 40px;
}

.tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tabs label {
  display: inline-block;
  padding: 14px 24px;
  margin-right: 8px;
  margin-bottom: -1px;
  border: 2px solid transparent;
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: var(--grey);
  transition: all 0.2s ease;
}

.tabs label:hover {
  background: var(--blue-100);
  color: var(--blue-700);
}

#tab-charts:checked ~ label[for="tab-charts"],
#tab-watermarks:checked ~ label[for="tab-watermarks"],
#tab-tables:checked ~ label[for="tab-tables"],
#tab-barcode:checked ~ label[for="tab-barcode"],
#tab-hierarchy:checked ~ label[for="tab-hierarchy"],
#tab-checkboxes:checked ~ label[for="tab-checkboxes"] {
  background: var(--white);
  color: var(--blue-600);
  border-color: var(--blue-200);
}

.tabs .panels {
  border: 2px solid var(--blue-200);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 40px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .tabs .panels {
    padding: 24px;
  }
  
  .tabs label {
    padding: 10px 16px;
    font-size: 13px;
    margin-right: 4px;
  }
}

.panel {
  display: none;
}

#tab-charts:checked ~ .panels #panel-charts,
#tab-watermarks:checked ~ .panels #panel-watermarks,
#tab-tables:checked ~ .panels #panel-tables,
#tab-barcode:checked ~ .panels #panel-barcode,
#tab-hierarchy:checked ~ .panels #panel-hierarchy,
#tab-checkboxes:checked ~ .panels #panel-checkboxes {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Side by Side Comparison */
.side-by-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .side-by-side {
    grid-template-columns: 1fr 1fr;
  }
}

.side-by-side figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.side-by-side figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.side-by-side figcaption {
  font-size: 14px;
  font-weight: 600;
  padding: 16px;
  background: var(--blue-100);
  color: var(--blue-800);
  border-bottom: 2px solid var(--blue-200);
}

.side-by-side img {
  width: 100%;
  display: block;
  background: var(--white);
}

/* Doc Challenge */
.doc-challenge {
  margin-top: 64px;
  padding: 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%);
  text-align: center;
  box-shadow: 0 8px 32px rgba(84, 111, 255, 0.3);
  color: var(--white);
}

.doc-challenge .title-20 {
  color: var(--white);
  font-size: 28px;
  margin-bottom: 16px;
}

.doc-challenge .body-14 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  margin-bottom: 32px;
}

.doc-challenge .btn-primary {
  background: var(--white);
  color: var(--blue-600);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.doc-challenge .btn-primary:hover {
  background: var(--blue-100);
  transform: translateY(-2px);
}

.doc-challenge .body-12 {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 16px;
}

@media (max-width: 768px) {
  .doc-challenge {
    padding: 32px 24px;
  }
}

/* FAQ Section */
.faq {
  background: var(--white);
}

details {
  border: 2px solid var(--blue-150);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin: 16px 0;
  background: var(--white);
  transition: all 0.3s ease;
}

details:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-sm);
}

details[open] {
  border-color: var(--blue-600);
  box-shadow: var(--shadow-md);
}

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  color: var(--black);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--blue-600);
  transition: transform 0.3s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  margin-top: 16px;
  color: var(--grey);
  font-size: 15px;
  line-height: 1.7;
}

details a {
  color: var(--blue-600);
  font-weight: 500;
}

/* Contact Form Section */
.contact-section {
  background: linear-gradient(180deg, #F8FAFF 0%, #FFFFFF 100%);
}

.contact-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--blue-150);
}

.contact-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-header .title-36 {
  margin-bottom: 16px;
  color: var(--black);
}

.contact-header .body-16 {
  color: var(--grey);
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
}

.required {
  color: var(--red-600);
}

.form-input,
.form-textarea {
  padding: 14px 16px;
  border: 2px solid var(--blue-200);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--black);
  background: var(--white);
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(84, 111, 255, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--grey-light);
}

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

.btn-form-submit {
  margin-top: 8px;
  width: 100%;
  font-size: 16px;
  padding: 16px 32px;
  cursor: pointer;
}

.btn-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  margin-top: 16px;
}

.form-message.success {
  background: rgba(65, 164, 81, 0.1);
  color: var(--green-700);
  border: 2px solid var(--green-600);
}

.form-message.error {
  background: rgba(208, 43, 43, 0.1);
  color: var(--red-600);
  border: 2px solid var(--red-600);
}

@media (max-width: 768px) {
  .contact-form-wrapper {
    padding: 32px 24px;
  }
  
  .contact-header {
    margin-bottom: 32px;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--blue-150);
  background: var(--blue-100);
  padding: 60px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-left {
  flex: 1;
}

.footer-left .body-12 {
  margin: 8px 0;
  font-size: 14px;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-cta {
    width: 100%;
  }
  
  .footer-cta .btn {
    width: 100%;
  }
}
