/* iTagPro Precision Tech Design System */
:root {
  --primary-dark: #0f172a;
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-indigo: #4f46e5;
  --bg-light: #f8fafc;
  --card-surface: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-slate: #e2e8f0;
  --radius-card: 10px;
  --radius-btn: 6px;
  --radius-frame: 16px;
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1140px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

body {
  width: 100%;
  overflow-x: hidden;
}

/* Header & Nav */
.header-sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  background-color: var(--accent-blue);
  border-radius: 50%;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent-blue);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-cta:hover {
  background-color: var(--accent-blue-hover);
}

.btn-cta:active {
  transform: translateY(1px);
}

/* Layout Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(180deg, var(--primary-dark) 0%, #1e293b 100%);
  color: #ffffff;
  padding: 4rem 0;
}

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

.hero-kicker {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  background-color: rgba(37, 99, 235, 0.15);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.hero-h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.hero-intro {
  font-size: 1.125rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-bullets {
  list-style: none;
  margin-bottom: 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.bullet-icon {
  color: var(--accent-blue);
  font-weight: bold;
}

.hero-cta-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-cta-btn {
  width: 100%;
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
  text-align: center;
}

.hero-proof {
  font-size: 0.85rem;
  color: #94a3b8;
  text-align: center;
}

.hero-visual-frame {
  border-radius: var(--radius-frame);
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #0f172a;
}

.hero-visual-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Sections Common */
.section-block {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border-slate);
}

.section-block:nth-child(even) {
  background-color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3rem auto;
}

.section-subtitle {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Feature & Showcase Split Layouts */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.showcase-grid.reverse {
  direction: rtl;
}

.showcase-grid.reverse > * {
  direction: ltr;
}

.showcase-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.showcase-h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.showcase-p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-item-icon {
  width: 20px;
  height: 20px;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.visual-container {
  border-radius: var(--radius-frame);
  overflow: hidden;
  background-color: var(--card-surface);
  border: 1px solid var(--border-slate);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.visual-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Specification Ledger Table */
.spec-table-wrapper {
  background-color: #ffffff;
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  margin-top: 1.5rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.spec-table th, .spec-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-slate);
}

.spec-table th {
  background-color: var(--bg-light);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.95rem;
}

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

.spec-table td:first-child {
  font-weight: 600;
  color: var(--primary-dark);
  width: 35%;
}

.spec-table td:last-child {
  color: var(--text-muted);
}

/* Testimonial Section */
.testimonial-notice {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-card);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  text-align: center;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background-color: #ffffff;
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.testimonial-quote {
  font-style: italic;
  color: var(--text-dark);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.testimonial-meta {
  border-top: 1px solid var(--border-slate);
  padding-top: 0.75rem;
}

.testimonial-author {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.testimonial-title {
  font-size: 0.85rem;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

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

/* Guarantee Panel */
.guarantee-panel {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: var(--radius-frame);
  padding: 3.5rem 2.5rem;
  text-align: center;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3);
}

.guarantee-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.guarantee-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
}

.guarantee-desc {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 700px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.faq-button {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--accent-blue);
  transition: transform 0.2s ease;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.65;
  border-top: 1px dashed var(--border-slate);
  padding-top: 1rem;
}

.important-unknown-note {
  font-size: 0.85rem;
  color: #b45309;
  background-color: #fffbeb;
  border: 1px solid #fef3c7;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

/* Footer */
.footer-main {
  background-color: var(--primary-dark);
  color: #94a3b8;
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-disclaimer {
  line-height: 1.6;
}

.footer-disclaimer h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.footer-nav h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Legal Pages Styling */
.legal-page-header {
  background-color: var(--primary-dark);
  color: #ffffff;
  padding: 3rem 0;
  text-align: center;
}

.legal-content {
  padding: 3.5rem 0;
  max-width: 800px;
}

.legal-content h2 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin: 1.75rem 0 0.75rem 0;
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.65;
}

/* Mobile Hero Ordering & Responsive Breakpoints */
@media (max-width: 768px) {
  .nav-cta,
  .header-sticky nav {
    display: none !important;
  }

  .spec-table {
    table-layout: fixed;
  }

  .spec-table th,
  .spec-table td {
    padding: 0.75rem;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-content-box {
    display: flex;
    flex-direction: column;
  }

  /* Exact Mobile Sequence: kicker -> H1 -> intro -> product image -> primary CTA -> compact proof -> bullets */
  .hero-kicker { order: 1; }
  .hero-h1 { order: 2; font-size: 2rem; }
  .hero-intro { order: 3; }
  .hero-visual-mobile-slot { order: 4; margin-bottom: 1.5rem; }
  .hero-cta-box { order: 5; }
  .hero-proof { order: 6; margin-bottom: 1.5rem; }
  .hero-bullets { order: 7; grid-template-columns: 1fr; }

  .desktop-visual-only {
    display: none !important;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .showcase-grid.reverse {
    direction: ltr;
  }

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

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}

@media (min-width: 769px) {
  .mobile-visual-only {
    display: none !important;
  }
}
