/* J-Cube Technologies — sharp / red + black */

:root {
  --red: #d2122e;
  --red-deep: #8b0d20;
  --red-glow: rgba(210, 18, 46, 0.35);
  --black: #0a0a0a;
  --steel: #15191e;
  --steel-2: #1f242b;
  --ink: #0a0a0a;
  --text: #3b3f44;
  --muted: #7a7e85;
  --line: #d9d9d9;
  --line-dark: #2a2f36;
  --bg: #ffffff;
  --bg-soft: #f4f5f7;
  --radius: 2px;
  --radius-lg: 4px;
  --max: 1180px;
  --space: clamp(1rem, 2vw, 1.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Exo 2', 'Inter', sans-serif;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }

a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--red-deep); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 0 0 var(--red);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem var(--space);
  max-width: var(--max);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--red);
  transition: width 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--red); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 1.6rem;
  cursor: pointer;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 42px;
}
.lang-toggle:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
@media (max-width: 768px) {
  .lang-toggle { font-size: 0.72rem; padding: 0.35rem 0.55rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 2px solid var(--red);
    padding: 0.5rem 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.95rem var(--space);
    border-bottom: 1px solid var(--line);
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--black);
  color: #fff;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3.5rem, 6vw, 5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(210, 18, 46, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--red); }
.hero .lead {
  font-size: 1.125rem;
  color: #c5c8cd;
  max-width: 38rem;
  margin-bottom: 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-lead .hero-grid {
  grid-template-columns: 1fr 1.05fr;
  align-items: start;
}
@media (max-width: 960px) { .hero-lead .hero-grid { grid-template-columns: 1fr; } }

.lead-points {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  gap: 0.5rem;
}
.lead-points li {
  position: relative;
  padding-left: 1.5rem;
  color: #d4d6da;
  font-size: 0.95rem;
}
.lead-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--red);
  transform: rotate(45deg);
}

.lead-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.92rem;
  color: #c5c8cd;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
}
.lead-contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9aa0a8;
  font-weight: 700;
}
.lead-contact a {
  color: #fff;
  font-weight: 600;
}
.lead-contact a:hover { color: var(--red); }
.lead-contact .sep { color: #4a4f56; }

.hero-media {
  position: relative;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(210, 18, 46, 0.15);
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(210, 18, 46, 0.18) 100%);
  pointer-events: none;
}
.hero-media img { width: 100%; display: block; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--red);
}
.hero .eyebrow { color: #ff4d63; }
.hero .eyebrow::before { background: var(--red); }

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.75rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 6px 24px -8px var(--red-glow);
}
.btn-primary:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: #fff;
  box-shadow: 0 8px 28px -6px var(--red-glow);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: #3a3f47;
}
.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}
.btn-dark {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}
.btn-dark:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ===== Sections ===== */
section { padding: clamp(3rem, 6vw, 5rem) 0; }
section.alt { background: var(--bg-soft); }
section.dark {
  background: var(--black);
  color: #c5c8cd;
}
section.dark h1, section.dark h2, section.dark h3 { color: #fff; }

.section-head {
  max-width: 44rem;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 0.85rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
section.dark .section-head p { color: #9aa0a8; }

/* ===== Trust strip (black, red accents) ===== */
.trust {
  background: var(--black);
  padding: 1.75rem 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.trust-row .item {
  position: relative;
  padding: 0 1rem;
}
.trust-row .item + .item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: var(--line-dark);
}
.trust-row .item strong {
  display: block;
  color: var(--red);
  font-family: 'Exo 2', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.trust-row .item span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9aa0a8;
  margin-top: 0.25rem;
}
@media (max-width: 640px) {
  .trust-row { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0; }
  .trust-row .item:nth-child(3)::before { display: none; }
}

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 880px) { .cards { grid-template-columns: 1fr; } }

@media (min-width: 881px) {
  .cards-5 {
    grid-template-columns: repeat(6, 1fr);
  }
  .cards-5 .card { grid-column: span 2; }
  .cards-5 .card:nth-child(4) { grid-column: 2 / span 2; }
  .cards-5 .card:nth-child(5) { grid-column: 4 / span 2; }
}
@media (max-width: 880px) and (min-width: 600px) {
  .cards-5 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.2s ease;
}
.card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.18);
}
.card:hover::before { transform: scaleY(1); }
.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(1.05);
}
.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body h3 { margin-bottom: 0.5rem; }
.card-body p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 1.25rem;
  flex: 1;
}
.card-link {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
}
.card-link::after {
  content: ' →';
  transition: margin-left 0.15s ease;
}
.card-link:hover::after { margin-left: 4px; }

/* ===== Form ===== */
.form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 12px 36px -16px rgba(0,0,0,0.1);
}
.form-wrap--hero {
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(210, 18, 46, 0.15);
}
.form-head { margin-bottom: 1.25rem; }
.form-head h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  margin: 0.35rem 0 0;
}
.form-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  padding: 0.25rem 0.5rem;
  background: rgba(210, 18, 46, 0.08);
  border-radius: var(--radius);
}
.form-actions { margin-top: 1.25rem; }
.btn-block { width: 100%; padding: 1.05rem 1.5rem; }
.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.85rem;
  text-align: center;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
input, textarea, select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}
textarea { min-height: 140px; resize: vertical; }
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.85rem;
}
.form-status {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}
.form-status.success { display: block; background: #ebf7ee; color: #1e6b3c; border-left: 3px solid #2e8b4f; }
.form-status.error { display: block; background: #fbeaea; color: #9b1c1c; border-left: 3px solid var(--red); }

/* ===== Two-column generic ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

.media img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* ===== Process steps ===== */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}
@media (max-width: 880px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .process { grid-template-columns: 1fr; } }

.process .step {
  counter-increment: step;
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 3px solid var(--red);
}
.process .step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: 'Exo 2', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.process .step h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.process .step p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* ===== Capabilities ===== */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 2rem;
  padding: 0;
  list-style: none;
  margin: 0;
}
@media (max-width: 640px) { .cap-grid { grid-template-columns: 1fr; } }
.cap-grid li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.cap-grid li::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--red);
  transform: rotate(45deg);
}

/* ===== Contact blocks ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 3rem);
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-block {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  background: #fff;
}
.contact-block .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.4rem;
}
.contact-block .value { color: var(--ink); font-weight: 600; }
.contact-block a { color: var(--ink); }
.contact-block a:hover { color: var(--red); }

/* ===== CTA banner ===== */
.cta-banner {
  background: var(--black);
  color: #fff;
  text-align: center;
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  position: relative;
  overflow: hidden;
  border-top: 2px solid var(--red);
  border-bottom: 1px solid var(--line-dark);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(210,18,46,0.16) 0%, transparent 65%);
  pointer-events: none;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; }
.cta-banner p {
  color: #c5c8cd;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--black);
  color: #9aa0a8;
  padding: 3rem 0 1.5rem;
  font-size: 0.92rem;
  border-top: 3px solid var(--red);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.site-footer h4 {
  color: #fff;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: #c5c8cd; }
.site-footer a:hover { color: var(--red); }
.site-footer .brand-name {
  color: #fff;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}
.site-footer .tagline { color: #8a929b; max-width: 24rem; margin-top: 0.5rem; }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #7a7e85;
}

/* ===== Selection ===== */
::selection { background: var(--red); color: #fff; }
