:root {
  --bg-dark: #0e0e10;
  --bg-surface: #16161a;
  --bg-card: #1c1c22;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --yellow-primary: #f59e0b;
  --yellow-bright: #fbbf24;
  --yellow-glow: rgba(245, 158, 11, 0.25);
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --radius-lg: 16px;
  --radius-md: 10px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: "Vazirmatn", "IRANSans", system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

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

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 14, 16, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--yellow-bright), var(--yellow-primary));
  color: #111;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 0 0 20px var(--yellow-glow);
}

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

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--yellow-bright), var(--yellow-primary));
  color: #111;
  box-shadow: 0 8px 24px var(--yellow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--yellow-bright);
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.btn-outline:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--yellow-bright);
}

/* Hero Section */
.hero {
  position: relative;
  padding-block: 4.5rem 4rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.14), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(245, 158, 11, 0.08), transparent 40%);
  border-bottom: 1px solid var(--border-subtle);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--yellow-bright);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.hero h1 span {
  color: var(--yellow-bright);
}

.hero p {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 56ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item strong {
  display: block;
  font-size: 1.4rem;
  color: var(--yellow-bright);
  font-weight: 800;
}

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

.hero-visual {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  object-fit: cover;
}

/* Section Headers */
.section {
  padding-block: 4.5rem;
}

.section-alt {
  background: var(--bg-surface);
  border-block: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  color: var(--yellow-bright);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
}

/* Category Filter / Group Titles */
.group-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(245, 158, 11, 0.3);
}

.group-title .dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--yellow-primary);
}

/* Machine Cards Grid */
.machines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.machine-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.machine-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--yellow-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.machine-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.machine-card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card-badge {
  background: rgba(245, 158, 11, 0.14);
  color: var(--yellow-bright);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.machine-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  direction: ltr;
  text-align: right;
}

.machine-subtitle {
  color: var(--yellow-primary);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.machine-desc {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 1.5rem;
}

.specs-list {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  margin-bottom: 1.5rem;
  display: grid;
  gap: 0.6rem;
}

.specs-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
}

.specs-list .spec-key {
  color: var(--text-muted);
}

.specs-list .spec-val {
  color: var(--text-main);
  font-weight: 600;
  text-align: left;
}

.card-footer {
  display: flex;
  gap: 0.75rem;
}

.card-footer .btn {
  width: 100%;
}

/* Contact & Consultation Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info-card,
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-list span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-list strong,
.contact-list a {
  font-size: 1.05rem;
  color: var(--text-main);
  font-weight: 700;
}

.contact-list a:hover {
  color: var(--yellow-bright);
}

.form-group {
  margin-bottom: 1.15rem;
}

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

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--yellow-primary);
}

.alert {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.alert-success {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.alert-error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
}
