:root {
  --bg-dark: #070b14;
  --bg-card: #0f172a;
  --bg-card-hover: #162038;
  --border-subtle: rgba(148, 163, 184, 0.16);
  --accent-cyan: #00d4ff;
  --accent-blue: #3b82f6;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-badge {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #070b14;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: var(--accent-cyan);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--accent-cyan);
  color: #070b14;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 96px 0 80px;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.12), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(59, 130, 246, 0.12), transparent 45%);
  border-bottom: 1px solid var(--border-subtle);
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--accent-amber);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.85rem;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  background: linear-gradient(90deg, var(--accent-cyan), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #070b14;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1.02rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 212, 255, 0.28);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 1.02rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
}

/* Mockup HMI Preview Card */
.hmi-preview-card {
  background: #0b1120;
  border: 2px solid rgba(0, 212, 255, 0.35);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55);
}

.hmi-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0284c7;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.status-pill {
  background: #10b981;
  color: #042f2e;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.hmi-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.metric-box {
  background: #070b14;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
}

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

.metric-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent-emerald);
  font-family: 'Consolas', monospace;
}

.hmi-zones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.zone-mini {
  background: #0f172a;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
  font-size: 0.78rem;
}

.zone-mini strong {
  display: block;
  color: #34d399;
  font-size: 1rem;
  margin-top: 2px;
}

/* Sections */
section {
  padding: 80px 0;
}

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

.section-badge {
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.section-header h2 {
  font-size: 2.15rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* Cards Grid */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.45);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* Before / After */
.compare-section {
  background: #0b1120;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.compare-card {
  border-radius: 16px;
  padding: 32px;
}

.compare-before {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.compare-after {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.compare-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.98rem;
}

/* PLC Brands */
.plc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 22px;
}

.plc-brand {
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}

.plc-models {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact Form */
.contact-box {
  background: var(--bg-card);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 18px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-info-icon {
  background: rgba(0, 212, 255, 0.12);
  color: var(--accent-cyan);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: #070b14;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--accent-emerald);
  color: #042f2e;
  font-weight: 800;
  padding: 14px 22px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 999;
}

/* Trust & Market Metrics Strip */
.trust-strip {
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  text-align: center;
}

.trust-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.trust-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Pricing Cards */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-featured {
  border: 2px solid var(--accent-cyan);
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.08) 0%, var(--bg-card) 60%);
  box-shadow: 0 12px 32px rgba(0, 212, 255, 0.14);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-cyan);
  color: #031525;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 10px;
}

.pricing-price small {
  font-size: 1rem;
  font-weight: 700;
  color: #34d399;
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
  min-height: 44px;
}

.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  flex: 1;
  font-size: 0.92rem;
}

/* 1-Second Estimator */
.estimator-box {
  background: #0f172a;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 18px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.est-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.est-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  cursor: pointer;
}

.est-check-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-cyan);
}

.estimator-result {
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 14px;
  padding: 26px;
  text-align: center;
}

.est-price-main {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--accent-cyan);
  margin: 8px 0 12px;
}

.est-compare-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 4-Step Process */
.process-step {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  color: #031525;
  background: #34d399;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

/* Model Search Box */
.model-search-wrap {
  background: var(--bg-card);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 28px;
}

.model-search-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.model-search-bar input {
  width: 100%;
  background: #070b14;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text-main);
  font-size: 1rem;
}

.model-search-bar input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.model-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--accent-cyan);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.chip-btn:hover {
  background: rgba(0, 212, 255, 0.2);
}

.model-search-result {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.94rem;
  color: var(--text-main);
}

/* Engineer Badge */
.engineer-badge-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 24px;
}

.engineer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #031525;
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Engineering Showcase & Case Study Images */
.eng-showcase {
  margin-top: 40px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 18px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: center;
}

.eng-showcase-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  display: block;
}

.eng-showcase-body h3 {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 12px;
}

.eng-showcase-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.eng-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
}

.case-img-wrap {
  margin-bottom: 18px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.case-img-wrap img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Enterprise Central Control MES Flagship Card */
.enterprise-card {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(16, 185, 129, 0.07) 50%, var(--bg-card) 100%);
  border: 2px solid rgba(0, 212, 255, 0.45);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 44px;
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 32px;
  align-items: center;
  box-shadow: 0 16px 40px rgba(0, 212, 255, 0.12);
}

.enterprise-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  display: block;
}

.enterprise-img-caption {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.enterprise-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent-cyan), #34d399);
  color: #031525;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.enterprise-body h3 {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-main);
}

.enterprise-desc {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.enterprise-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.enterprise-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(7, 11, 20, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 18px;
}

.enterprise-price-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.enterprise-price-lbl {
  font-size: 0.76rem;
  color: var(--accent-cyan);
  font-weight: 800;
}

.enterprise-price-val {
  font-size: 1.15rem;
  font-weight: 900;
  color: #34d399;
}

.enterprise-price-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .grid-4, .grid-3, .grid-2, .contact-box, .estimator-box, .trust-grid, .eng-showcase, .enterprise-card {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
}
