/* TcPlcScope Official Website - Main Stylesheet (Modern Industrial Tech) */

:root {
  --bg-primary: #070B14;
  --bg-secondary: #0F172A;
  --bg-tertiary: #1E293B;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-color: rgba(51, 65, 85, 0.6);
  --border-glow: rgba(0, 255, 136, 0.3);
  
  /* Brand Industrial Colors */
  --accent-green: #00FF88;
  --accent-green-dark: #059669;
  --accent-blue: #38BDF8;
  --accent-blue-deep: #007ACC;
  --accent-purple: #A855F7;
  --accent-amber: #F59E0B;
  --accent-red: #EF4444;

  /* Text Colors */
  --text-main: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  /* Typography & Layout */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --container-max: 1240px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  scroll-behavior: smooth;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(0, 255, 136, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(56, 189, 248, 0.05) 0%, transparent 45%),
    linear-gradient(rgba(30, 41, 59, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 41, 59, 0.15) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  background-position: 0 0, 0 0, -1px -1px, -1px -1px;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* === Utility Components & Badges === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.badge-green {
  border-color: rgba(0, 255, 136, 0.4);
  color: var(--accent-green);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.15);
}

.badge-blue {
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--accent-blue);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: #020617;
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.8);
  border-color: var(--border-color);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

/* Store Badge Buttons (App Store & Google Play) */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: #020617;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
  transition: all var(--transition-normal);
  text-align: left;
}

.btn-store:hover {
  border-color: var(--accent-green);
  box-shadow: 0 4px 18px rgba(0, 255, 136, 0.2);
  transform: translateY(-2px);
}

.btn-store-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.btn-store-text {
  display: flex;
  flex-direction: column;
}

.btn-store-subtitle {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.btn-store-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

/* === Navigation Header === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-normal);
  background: rgba(7, 11, 20, 0.65);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(7, 11, 20, 0.92);
  border-bottom-color: var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-brand span.text-highlight {
  color: var(--accent-green);
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-green);
}

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

.lang-switch {
  display: flex;
  align-items: center;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.lang-btn {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--bg-tertiary);
  color: var(--accent-green);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-main);
  cursor: pointer;
}

/* === Hero Section === */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-title {
  font-size: 46px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 30%, var(--accent-green) 75%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-specs-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(51, 65, 85, 0.4);
}

.hero-spec-item {
  display: flex;
  flex-direction: column;
}

.spec-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-green);
}

.spec-lbl {
  font-size: 12px;
  color: var(--text-muted);
}

/* === Interactive Hero Simulator Component === */
.hero-scope-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 255, 136, 0.08);
  backdrop-filter: blur(20px);
  position: relative;
}

.scope-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  min-height: 38px;
}

.scope-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.scope-status-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 255, 136, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(0, 255, 136, 0.3);
  white-space: nowrap;
  font-family: var(--font-mono);
}

.scope-canvas-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  background: #020617;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.5);
  cursor: crosshair;
}

#heroScopeCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.scope-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  gap: 12px;
  min-height: 40px;
}

.scope-btn-group {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.scope-ctrl-btn {
  padding: 5px 12px;
  min-width: 62px;
  text-align: center;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 12px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.scope-ctrl-btn:hover, .scope-ctrl-btn.active {
  background: rgba(0, 255, 136, 0.15);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.scope-readings {
  display: grid;
  grid-template-columns: 104px 128px;
  gap: 4px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.scope-readings > div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reading-val {
  color: var(--text-main);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* === Section Layout Common === */
.section {
  padding: 90px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-tag {
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

/* === Comparison Section === */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.comparison-card {
  padding: 36px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  position: relative;
}

.card-bad {
  border-color: rgba(239, 68, 68, 0.3);
}

.card-good {
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow: 0 10px 40px rgba(0, 255, 136, 0.1);
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.comp-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.comp-icon.bad {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}

.comp-icon.good {
  background: rgba(0, 255, 136, 0.15);
  color: var(--accent-green);
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.comp-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
}

.comp-mark {
  font-weight: bold;
  font-size: 16px;
}

.comp-mark.bad { color: var(--accent-red); }
.comp-mark.good { color: var(--accent-green); }

/* === Bento Grid Features Section === */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 24px;
}

.bento-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.bento-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.bento-wide {
  grid-column: span 2;
}

.bento-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.bento-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.bento-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bento-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-pill {
  font-size: 12px;
  font-family: var(--font-mono);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-tertiary);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

/* === Screenshot Gallery Section === */
.gallery-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.gallery-tab-btn {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-tab-btn.active, .gallery-tab-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.gallery-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(16px);
}

.gallery-preview-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}

.mockup-phone {
  width: 290px;
  height: 590px;
  background: #020617;
  border-radius: 46px;
  border: 10px solid #1E293B;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), inset 0 0 10px rgba(0,0,0,0.8), 0 0 30px rgba(0, 255, 136, 0.15);
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform var(--transition-normal);
}

.mockup-phone:hover {
  transform: scale(1.02);
}

.mockup-phone .phone-speaker {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  border-radius: 2px;
  background: #334155;
  z-index: 10;
}

.mockup-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gallery-step-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-green);
  font-weight: 700;
}

.gallery-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.gallery-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.gallery-feature-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-feature-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.gallery-feature-points li::before {
  content: "✔";
  color: var(--accent-green);
  font-weight: bold;
}

/* === Technical Specs & Topology Section === */
.specs-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: stretch;
}

.topology-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.topology-box img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.specs-table-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-color);
}

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

.specs-table td {
  padding: 12px 8px;
}

.specs-table td:first-child {
  color: var(--text-muted);
  width: 38%;
  font-weight: 500;
}

.specs-table td:last-child {
  color: var(--text-main);
  font-family: var(--font-mono);
}

/* === Client Download Section === */
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.download-card.ios::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-blue);
}

.download-card.android::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-green);
}

.download-platform-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.platform-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.download-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

/* === Contact & Inquiry Form Section === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px;
  backdrop-filter: blur(20px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-card-title {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-channels {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-channel-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.channel-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
}

.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-label span.req {
  color: var(--accent-red);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: #020617;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.2);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.form-status-msg {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-top: 16px;
}

.form-status-msg.success {
  display: block;
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
}

.form-status-msg.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
}

/* === FAQ Section === */
.faq-accordion {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-question {
  width: 100%;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main);
}

.faq-icon {
  font-size: 18px;
  transition: transform var(--transition-normal);
  color: var(--accent-blue);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-green);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding: 0 28px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  padding-bottom: 24px;
}

/* === Footer === */
.site-footer {
  background: #020617;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 16px 0 24px;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent-green);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  border-top: 1px solid rgba(51, 65, 85, 0.4);
  font-size: 13px;
  color: var(--text-dim);
}

/* === Lightbox Modal === */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(20px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-height: 80vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
  border: 1px solid var(--border-color);
}

.lightbox-caption {
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-secondary);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 32px;
  cursor: pointer;
}

/* === PlcTools.cc Multi-App Suite & Store Review Notice Extensions === */
.portal-back-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent-blue);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  margin-right: 10px;
  white-space: nowrap;
}

.portal-back-pill:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: var(--accent-blue);
  transform: translateX(-2px);
}

.store-review-notice {
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: #FBBF24;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.store-review-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F59E0B;
  box-shadow: 0 0 8px #F59E0B;
  margin-top: 6px;
  flex-shrink: 0;
}

.store-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FBBF24;
  font-size: 12px;
  font-weight: 600;
}

.suite-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.suite-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  backdrop-filter: blur(16px);
}

.suite-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 153, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.suite-card.featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
}

.suite-card.secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-amber));
}

.suite-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.suite-app-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.suite-app-brand img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.suite-domain-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.1);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.suite-actions {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* === Responsive Design Breakpoints === */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .suite-grid {
    grid-template-columns: 1fr;
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-wide {
    grid-column: span 2;
  }
  .gallery-stage {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .gallery-feature-points li {
    justify-content: center;
  }
  .specs-layout {
    grid-template-columns: 1fr;
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  /* Compact Navbar on Mobile */
  .navbar {
    padding: 10px 0;
  }
  .nav-inner {
    gap: 8px;
  }
  .portal-back-pill {
    padding: 4px 8px;
    font-size: 11px;
    margin-right: 2px;
  }
  .nav-brand {
    font-size: 16px;
    gap: 8px;
  }
  .nav-brand img {
    width: 28px;
    height: 28px;
  }
  .nav-links {
    display: none;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav-actions .btn {
    display: none;
  }
  .lang-btn {
    padding: 3px 7px;
    font-size: 11px;
  }
  .mobile-toggle {
    display: block;
    padding: 2px 4px;
  }

  /* Hero Section Mobile Optimization */
  .hero {
    padding: 96px 0 48px;
  }
  .hero-grid {
    gap: 28px;
  }
  .hero-content {
    gap: 16px;
  }
  .badge {
    font-size: 12px;
    padding: 5px 12px;
    max-width: 100%;
    white-space: normal;
    line-height: 1.4;
  }
  .hero-title {
    font-size: 28px;
    line-height: 1.25;
    word-break: break-word;
  }
  .hero-desc {
    font-size: 15px;
    line-height: 1.6;
  }
  .hero-cta-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }
  .hero-cta-group .btn {
    grid-column: span 2;
    width: 100%;
    white-space: normal;
    text-align: center;
    padding: 12px 16px !important;
    font-size: 14px !important;
  }
  .hero-cta-group .btn-store {
    width: 100%;
    padding: 8px 12px;
    gap: 8px;
    justify-content: center;
  }
  .btn-store-icon {
    width: 22px;
    height: 22px;
  }
  .btn-store-title {
    font-size: 13px;
  }
  .hero-specs-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px !important;
  }
  .spec-val {
    font-size: 15px;
  }
  .spec-lbl {
    font-size: 11px;
    line-height: 1.3;
  }

  /* Hero Scope Card & Portal Multi-App Monitor */
  .hero-scope-card {
    padding: 14px;
    border-radius: var(--radius-lg);
  }
  .scope-card-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .scope-title {
    font-size: 12px;
    gap: 6px;
  }
  .scope-status-tag {
    font-size: 10px;
    padding: 2px 6px;
  }
  .scope-canvas-wrap {
    height: 220px;
  }
  .scope-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .scope-btn-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }
  .scope-readings {
    grid-template-columns: 1fr 1fr;
    width: 100%;
    background: rgba(2, 6, 23, 0.55);
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(51, 65, 85, 0.4);
  }
  /* Portal Ecosystem Monitor inner items on mobile */
  .hero-scope-card > div[style*="padding: 24px"] {
    padding: 8px 4px !important;
    gap: 10px !important;
  }
  .hero-scope-card > div[style*="padding: 24px"] > div {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 12px !important;
  }
  .hero-scope-card > div[style*="padding: 24px"] > div > div:last-child {
    text-align: left !important;
  }

  /* Common Sections & Grids */
  .section {
    padding: 52px 0;
  }
  .section-header {
    margin: 0 auto 28px;
  }
  .section-title {
    font-size: 24px;
    line-height: 1.3;
  }
  .section-subtitle {
    font-size: 14px;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .comparison-card {
    padding: 22px 18px;
  }
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 16px;
  }
  .bento-wide {
    grid-column: span 1;
  }
  .bento-item {
    padding: 22px 18px;
  }

  /* Product Suite Cards on Mobile */
  .suite-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .suite-card {
    padding: 22px 18px;
  }
  .suite-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .suite-app-brand img {
    width: 44px;
    height: 44px;
  }

  /* Gallery Section on Mobile */
  .gallery-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 24px;
  }
  .gallery-tab-btn {
    padding: 8px 10px;
    font-size: 12px;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .gallery-stage {
    padding: 22px 16px;
    gap: 24px;
    text-align: left;
  }
  .mockup-phone {
    width: 240px;
    height: 488px;
    border-width: 8px;
    border-radius: 36px;
  }
  .gallery-title {
    font-size: 20px;
  }
  .gallery-desc {
    font-size: 14px;
  }
  .gallery-feature-points li {
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
  }

  /* Specs & Download Cards on Mobile */
  .topology-box {
    padding: 12px;
  }
  .specs-table-box {
    padding: 20px 16px;
  }
  .specs-table td {
    padding: 10px 6px;
    font-size: 12px;
    word-break: break-word;
  }
  .download-grid {
    gap: 20px;
  }
  .download-card {
    padding: 22px 18px;
  }
  .download-card .btn {
    white-space: normal;
    line-height: 1.35;
    text-align: center;
    padding: 12px 14px;
    font-size: 13px;
  }

  /* Contact & FAQ & Footer on Mobile */
  .contact-grid {
    padding: 24px 18px;
    gap: 28px;
  }
  .contact-card-title {
    font-size: 22px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .faq-question {
    padding: 16px 18px;
    font-size: 15px;
    gap: 12px;
  }
  .faq-answer {
    padding: 0 18px;
    font-size: 14px;
  }
  .site-footer {
    padding: 48px 0 32px;
    margin-top: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

