/* ═══════════════════════════════════════════════
   LOGITONIX — COMPONENTS v3
   Dark theme component library
═══════════════════════════════════════════════ */

/* ─── Hero ───────────────────────────────────── */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--navbar-height);
}
#hero-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.75;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding-block: var(--space-16);
}
.hero__title {
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-6);
}
.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
  line-height: 1.7;
}
.hero__ctas {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
}
.hero__stats {
  display: flex;
  gap: var(--space-12);
  justify-content: center;
  flex-wrap: wrap;
}
.hero__stat {
  text-align: center;
}
.hero__stat-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
}
.hero__stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-1);
}

/* ─── Ticker ─────────────────────────────────── */
.ticker {
  padding-block: var(--space-8);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  position: relative;
}
.ticker__item {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.ticker__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-text-faint);
  flex-shrink: 0;
}

/* ─── Services Grid (Uniform 3×2) ────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ─── Service Item Card ──────────────────────── */
.service-item {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-6) var(--space-8);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}
/* Gradient top accent — hidden by default */
.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary) 0%, #a78bfa 50%, #38bdf8 100%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.service-item:hover {
  border-color: var(--color-border-hover);
  background: rgba(255,255,255,0.04);
}
.service-item:hover::before {
  opacity: 1;
}

[data-theme="light"] .service-item {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .service-item:hover {
  background: #fff;
  border-color: rgba(0,0,0,0.12);
}

/* Icon */
.service-item__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(79,142,247,0.08);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.service-item:hover .service-item__icon {
  background: rgba(79,142,247,0.15);
}

/* Number */
.service-item__number {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-faint);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

/* Title */
.service-item__title {
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: var(--space-2);
}

/* Description */
.service-item__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
}

/* Arrow */
.service-item__arrow {
  position: absolute;
  bottom: var(--space-5);
  right: var(--space-5);
  color: var(--color-text-faint);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s var(--ease);
}
.service-item:hover .service-item__arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--color-primary);
}

/* ─── Work / Case Study Cards ────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.work-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
[data-theme="light"] .work-card {
  background: #fff;
  border-color: rgba(0,0,0,0.06);
}
.work-card__index {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}
.work-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.work-card__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}
.work-card__tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.work-card__tag {
  font-size: var(--text-xs);
  color: var(--color-primary);
  background: var(--color-primary-bg);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 500;
}

/* ─── Stats Strip ────────────────────────────── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
  padding-block: var(--space-16);
}
.stat-counter__number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
}
.stat-counter__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

/* ─── Why Logitonix (Differentiators) ────────── */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.diff-item__number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
}
.diff-item__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.diff-item__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ─── Contact Form ───────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 560px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-field label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}
.form-field input,
.form-field textarea,
.form-field select {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  outline: none;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-bg);
}
.form-field textarea {
  min-height: 120px;
  resize: vertical;
}
[data-theme="light"] .form-field input,
[data-theme="light"] .form-field textarea,
[data-theme="light"] .form-field select {
  background: #fff;
  border-color: rgba(0,0,0,0.1);
}

/* ─── Process Steps ──────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.process-step {
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.02);
}
[data-theme="light"] .process-step {
  background: #fff;
  border-color: rgba(0,0,0,0.06);
}
.process-step__number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}
.process-step h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}
.process-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ─── CTA Section ────────────────────────────── */
.cta-section {
  text-align: center;
  background: var(--color-surface-offset);
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-8);
}
.cta-section h2 {
  margin-bottom: var(--space-4);
}
.cta-section p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 48ch;
  margin-inline: auto;
}

/* ─── Industry Cards ─────────────────────────── */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
.industry-card {
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.02);
}
[data-theme="light"] .industry-card {
  background: #fff;
  border-color: rgba(0,0,0,0.06);
}
.industry-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.industry-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ─── Case Study Detail ──────────────────────── */
.case-study {
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  margin-bottom: var(--space-6);
}
.case-study__meta {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.case-study__meta span {
  padding: 0.2rem 0.6rem;
  background: var(--color-primary-bg);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-weight: 500;
}
.case-study h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}
.case-study__section {
  margin-bottom: var(--space-4);
}
.case-study__section h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}
.case-study__section p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ─── Service Detail Page ────────────────────── */
.service-detail {
  padding-block: var(--space-12);
  border-bottom: 1px solid var(--color-border);
}
.service-detail:last-child {
  border-bottom: none;
}
.service-detail h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}
.service-detail p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}
.service-detail ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.service-detail li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-4);
  position: relative;
}
.service-detail li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}
.service-detail__ideal {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  font-style: italic;
}

/* ─── Careers ────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
.value-card {
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.02);
}
[data-theme="light"] .value-card {
  background: #fff;
}
.value-card h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}
.value-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.roles-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.roles-list li {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  padding: var(--space-4) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02);
}

/* ─── Blog Category Cards ────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
.blog-card {
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.blog-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.blog-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ─── Newsletter Strip ───────────────────────── */
.newsletter {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.newsletter input {
  flex: 1;
  min-width: 240px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  outline: none;
}
.newsletter input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-bg);
}

/* ─── Page Hero (inner pages) ────────────────── */
.page-hero {
  padding-top: calc(var(--navbar-height) + var(--space-16));
  padding-bottom: var(--space-12);
}
.page-hero h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}
.page-hero p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 64ch;
  line-height: 1.7;
}

/* ─── Contact Grid ───────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-16);
  align-items: start;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-grid__item:nth-child(1) { grid-column: auto; }
  .bento-grid__item:nth-child(2) { grid-column: auto; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}
@media (max-width: 768px) {
  .hero { min-height: auto; padding-block: calc(var(--navbar-height) + var(--space-12)) var(--space-12); }
  .hero__stats { gap: var(--space-6); }
  .bento-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr; gap: var(--space-6); }
  .process-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .hero__ctas { flex-direction: column; align-items: center; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { max-width: none; }
}
