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

:root {
  --primary: #0066ff;
  --primary-dark: #0052cc;
  --bg: #f8f9fc;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f2f5;
  --text: #1a1a2e;
  --text-muted: #5a5a6e;
  --border: #e0e0e8;
  --accent: #00a67e;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-nav {
  padding: 8px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  font-size: 0.9rem;
}

.btn-nav:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s;
}

.navbar.scrolled {
  background: rgba(248, 249, 252, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

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

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo:hover {
  color: var(--text);
}

.logo .logo-dot {
  color: var(--accent);
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: 0.2s;
}

/* === Hero === */
.hero {
  padding: 160px 0 100px;
  text-align: center;
}

.hero-label {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: 20px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-sub strong {
  color: var(--accent);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 16px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* === Section Titles === */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 48px;
}

/* === Services === */
.services {
  padding: 100px 0;
}

.services .section-title,
.services .section-sub {
  text-align: center;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 102, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-icon {
  color: var(--primary);
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === Cases === */
.cases {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.cases .section-title,
.cases .section-sub {
  text-align: center;
}

.cases .service-card .tutorial-topic {
  margin-bottom: 12px;
}

/* === Solutions === */
.solutions {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.solutions .section-title,
.solutions .section-sub {
  text-align: center;
}

a.solution-link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

a.solution-link .tutorial-topic,
a.solution-link .tutorial-topic-logo {
  margin-bottom: 12px;
}

/* === Team / Founders === */
.team {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.team .section-title,
.team .section-sub {
  text-align: center;
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.founder-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.founder-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 102, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.founder-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 102, 255, 0.1);
  border: 2px solid rgba(0, 102, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
}

.founder-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.founder-role {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.founder-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.founder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.about-summary {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-summary p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* === Expertise / Tutorials === */
.expertise,
.tutorials {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.expertise .section-title,
.expertise .section-sub,
.tutorials .section-title,
.tutorials .section-sub {
  text-align: center;
}

.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.tutorial-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.3s;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tutorial-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 102, 255, 0.3);
  color: var(--text);
  transform: translateY(-2px);
}

.tutorial-topic {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.tutorial-topic-logo {
  display: inline-block;
  height: 32px;
  margin-bottom: 12px;
}

.tutorial-topic-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.tutorial-topic-logo img[alt="DPDK logo"] {
  height: 52px;
}

.tutorial-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.tutorial-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.tutorials-cta {
  text-align: center;
}

.topic-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* === Contact === */
.contact {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.contact .section-title,
.contact .section-sub {
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
  color: var(--text-muted);
}

.contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  color: var(--text);
  margin-bottom: 2px;
}

.contact-item p {
  margin: 0;
}

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

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a5a6e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.contact-form select option {
  background: var(--bg-card);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form button {
  align-self: flex-start;
}

/* === Footer === */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

/* === Screen-reader only (accessibility + SEO) === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === FAQ Section === */
.faq {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.faq .section-title,
.faq .section-sub {
  text-align: center;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.3s;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.faq-item:hover {
  border-color: rgba(0, 102, 255, 0.3);
}

.faq-item[open] {
  border-color: rgba(0, 102, 255, 0.3);
}

.faq-question {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
  line-height: 1.5;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-question:hover {
  color: var(--primary);
}

.faq-answer {
  padding: 0 24px 20px;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-answer strong {
  color: var(--text);
}

/* === Hero Resources Note === */
.hero-resources-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.hero-resources-note a {
  color: var(--primary);
  font-weight: 600;
}

.hero-resources-note a:hover {
  color: var(--accent);
}

/* === Thank You Page === */
.thank-you-section {
  padding: 160px 0 100px;
  text-align: center;
}

.thank-you-section h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 600px;
  margin: 48px auto 0;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  color: var(--text);
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.download-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 102, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: var(--text);
}

.download-card svg {
  color: var(--primary);
}

.download-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.download-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* === Solution Pages === */
.solution-breadcrumb {
  padding: 100px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.solution-breadcrumb a {
  color: var(--text-muted);
}

.solution-breadcrumb a:hover {
  color: var(--primary);
}

.solution-breadcrumb span {
  margin: 0 6px;
  color: var(--border);
}

.solution-hero {
  padding: 24px 0 40px;
}

.solution-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-top: 16px;
  letter-spacing: -0.5px;
}

.solution-content {
  padding-bottom: 0;
}

.solution-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 48px 0 16px;
  letter-spacing: -0.3px;
  color: var(--text);
}

.solution-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text);
}

.solution-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.solution-content ul,
.solution-content ol {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
  padding-left: 24px;
}

.solution-content li {
  margin-bottom: 8px;
}

.solution-content strong {
  color: var(--text);
}

.solution-content code {
  background: rgba(0, 102, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88rem;
  color: var(--primary-dark);
}

.solution-table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.solution-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  font-size: 0.9rem;
}

.solution-table th,
.solution-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.solution-table th {
  background: rgba(0, 102, 255, 0.05);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.solution-table td {
  color: var(--text-muted);
}

.solution-table tr:last-child td {
  border-bottom: none;
}

.solution-cta {
  text-align: center;
  padding: 60px 0;
  margin-top: 48px;
  border-top: 1px solid var(--border);
}

.solution-cta h2 {
  margin-top: 0;
}

.solution-cta p {
  max-width: 500px;
  margin: 0 auto 24px;
}

/* === Platforms === */
.platforms {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.platforms .section-title,
.platforms .section-sub {
  text-align: center;
}

.platforms-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.platform-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  opacity: 0.45;
  filter: grayscale(100%);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.platform-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.platform-logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

/* === Customers === */
.customers {
  padding: 60px 0;
}

.customers-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.customer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.customer-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.customer-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.customer-logo img[alt*="1touch"] {
  filter: brightness(0);
}

.customer-logo:hover img[alt*="1touch"] {
  filter: none;
}

/* === Animations === */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(248, 249, 252, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    gap: 24px;
  }

  .services-grid,
  .tutorials-grid,
  .founders-grid,
  .downloads-grid {
    grid-template-columns: 1fr;
  }

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

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

  .solution-hero h1 {
    font-size: 1.6rem;
  }

  .solution-table {
    font-size: 0.8rem;
  }

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

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.6rem;
  }
}
