/* General Knowledge Tech - Swiss Grid Typography System */

:root {
  --orange: #E07A3D;
  --black: #1a1a1a;
  --white: #ffffff;
  --grid-line: rgba(255, 255, 255, 0.15);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
}

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

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

body {
  font-family: var(--font-primary);
  background-color: var(--orange);
  color: var(--black);
  line-height: 1.5;
  min-height: 100vh;
}

/* Grid Background */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

/* Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--black);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-logo-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  clip-path: circle(46%);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: var(--black);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 0.6;
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0;
}

.hero-title {
  font-size: clamp(3rem, 12vw, 10rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.hero-tagline {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 400;
  max-width: 500px;
  margin-bottom: 60px;
  border-left: 3px solid var(--black);
  padding-left: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 2px solid var(--black);
  transition: all 0.2s;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  background: transparent;
  color: var(--black);
}

.btn-secondary {
  background: transparent;
  color: var(--black);
}

.btn-secondary:hover {
  background: var(--black);
  color: var(--white);
}

.btn-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Sections */
section {
  padding: 100px 0;
  border-top: 1px solid var(--black);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  opacity: 0.7;
}

.section-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 30px;
  max-width: 800px;
}

.section-text {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 40px;
}

/* Product Card */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.product-card {
  background: var(--white);
  padding: 40px;
  border: 2px solid var(--black);
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.product-card p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #444;
}

.product-card .btn {
  width: 100%;
  text-align: center;
}

/* About Page */
.about-hero {
  padding: 120px 0 80px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.method-steps {
  list-style: none;
  counter-reset: step;
}

.method-steps li {
  counter-increment: step;
  padding: 30px 0;
  border-bottom: 1px solid rgba(0,0,0,0.2);
  display: flex;
  gap: 20px;
}

.method-steps li::before {
  content: counter(step, decimal-leading-zero);
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.5;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 60px;
}

.contact-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.contact-info a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

footer a {
  color: var(--black);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  nav {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .nav-links {
    gap: 24px;
  }

  .hero-title {
    font-size: clamp(2.5rem, 15vw, 5rem);
  }

  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }
}

/* ================================
   SOLUTIONS PAGE STYLES
   ================================ */

/* Solutions Hero */
.solutions-hero {
  padding: 80px 0;
  border-top: none;
}

/* Document Chaos Animation */
.chaos-section {
  padding: 60px 0;
}

.chaos-animation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.chaos-files {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.chaos-file {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid var(--black);
  background: var(--white);
  animation: shake 2s ease-in-out infinite;
}

.chaos-file:nth-child(2) { animation-delay: 0.1s; }
.chaos-file:nth-child(3) { animation-delay: 0.2s; }
.chaos-file:nth-child(4) { animation-delay: 0.3s; }
.chaos-file:nth-child(5) { animation-delay: 0.4s; }
.chaos-file:nth-child(6) { animation-delay: 0.5s; }

@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

.chaos-arrow {
  color: var(--black);
}

.chaos-result {
  max-width: 400px;
}

.chat-bubble {
  background: var(--white);
  border: 2px solid var(--black);
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-question {
  font-weight: 600;
  font-size: 1rem;
}

.chat-answer {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #444;
}

.chat-source {
  font-size: 0.75rem;
  opacity: 0.6;
  font-style: italic;
}

/* Before vs After Comparison */
.comparison-section {
  padding: 100px 0;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
}

.comparison-card {
  padding: 40px;
  border: 2px solid var(--black);
}

.comparison-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-card ul {
  list-style: none;
}

.comparison-card li {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.comparison-card li:last-child {
  border-bottom: none;
}

.comparison-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.comparison-stat {
  font-size: 1.2rem;
  font-weight: 700;
}

.comparison-desc {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 4px;
}

.comparison-before {
  background: rgba(0,0,0,0.05);
}

.comparison-after {
  background: var(--white);
}

/* Sector Cards Grid */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.sector-card {
  background: var(--white);
  border: 2px solid var(--black);
  padding: 35px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.sector-card:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 0 var(--black);
}

.sector-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.sector-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sector-example {
  background: rgba(224, 122, 61, 0.15);
  padding: 20px;
  margin-bottom: 20px;
  border-left: 3px solid var(--orange);
}

.example-query {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.example-answer {
  display: block;
  font-size: 0.85rem;
  color: #555;
  font-style: italic;
}

.sector-features {
  list-style: none;
  margin-bottom: 25px;
}

.sector-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding-left: 20px;
  position: relative;
}

.sector-features li::before {
  content: ">";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--orange);
}

.sector-stat {
  background: var(--black);
  color: var(--white);
  padding: 15px 20px;
  margin: -35px -35px -35px -35px;
  margin-top: 20px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.stat-number {
  font-size: 1.3rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Multi-Format Pipeline */
.pipeline-section {
  padding: 100px 0;
}

.pipeline-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.pipeline-inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.pipeline-input {
  width: 90px;
  height: 90px;
  background: var(--white);
  border: 2px solid var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: transform 0.2s;
}

.pipeline-input:hover {
  transform: scale(1.05);
}

.input-icon {
  font-size: 1.8rem;
}

.input-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pipeline-arrow {
  display: flex;
  align-items: center;
  gap: 0;
}

.arrow-line {
  width: 60px;
  height: 3px;
  background: var(--black);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.arrow-head {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid var(--black);
}

.pipeline-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gkchatty-box {
  width: 140px;
  height: 140px;
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(224, 122, 61, 0.3); }
  50% { box-shadow: 0 0 40px rgba(224, 122, 61, 0.6); }
}

.gk-logo {
  font-size: 2rem;
  font-weight: 800;
}

.gk-text {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 5px;
}

.pipeline-output {
  max-width: 200px;
}

.output-box {
  background: var(--white);
  border: 2px solid var(--black);
  padding: 25px;
  text-align: center;
}

.output-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}

.output-label {
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.output-desc {
  font-size: 0.8rem;
  color: #555;
}

/* Competitive Matrix */
.matrix-section {
  padding: 100px 0;
}

.matrix-table-wrapper {
  overflow-x: auto;
  margin-top: 60px;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 2px solid var(--black);
}

.matrix-table th,
.matrix-table td {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.matrix-table th {
  background: var(--black);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.matrix-table th:first-child {
  text-align: left;
}

.matrix-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.matrix-table tbody tr:hover {
  background: rgba(224, 122, 61, 0.1);
}

.highlight-col {
  background: rgba(224, 122, 61, 0.2) !important;
}

.matrix-table th.highlight-col {
  background: var(--orange) !important;
  color: var(--black);
}

.check, .cross, .partial {
  font-size: 1.2rem;
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  text-align: center;
}

.cta-section .section-title {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-group {
  justify-content: center;
}

/* Solutions Page Responsive */
@media (max-width: 768px) {
  .chaos-animation {
    flex-direction: column;
  }

  .chaos-arrow {
    transform: rotate(90deg);
  }

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

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

  .pipeline-visual {
    flex-direction: column;
  }

  .pipeline-arrow {
    transform: rotate(90deg);
  }

  .pipeline-inputs {
    grid-template-columns: repeat(3, 1fr);
  }

  .matrix-table {
    font-size: 0.85rem;
  }

  .matrix-table th,
  .matrix-table td {
    padding: 12px 8px;
  }
}
